-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation #79
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments about wording
website/docs/r/monitor.html.markdown
Outdated
@@ -57,7 +57,9 @@ The following arguments are supported: | |||
* `composite` | |||
* `name` - (Required) Name of Datadog monitor | |||
* `query` - (Required) The monitor query to notify on with syntax varying depending on what type of monitor | |||
you are creating. See [API Reference](http://docs.datadoghq.com/api) for options. | |||
you are creating. Note this is not the same query you see in the UI, the format is different depending on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a hard time reading this sentence. I'd split the sentence, something like:
The monitor query on which to notify. The syntax varies depending on the type of monitor you are creating.
website/docs/r/monitor.html.markdown
Outdated
@@ -74,6 +76,10 @@ The following arguments are supported: | |||
warning_recovery = 75 | |||
} | |||
``` | |||
**Warning:** the `critical` threshold value has to match the one contained in the `query` argument. For example, a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd replace has to
with *must*
to emphasize
website/docs/r/monitor.html.markdown
Outdated
@@ -74,6 +76,10 @@ The following arguments are supported: | |||
warning_recovery = 75 | |||
} | |||
``` | |||
**Warning:** the `critical` threshold value has to match the one contained in the `query` argument. For example, a | |||
query like `avg(last_1h):avg:system.disk.in_use{role:sqlserver} by {host} > 90` would be fine with the `threshold` above, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/would be fine/is valid
website/docs/r/monitor.html.markdown
Outdated
@@ -74,6 +76,10 @@ The following arguments are supported: | |||
warning_recovery = 75 | |||
} | |||
``` | |||
**Warning:** the `critical` threshold value has to match the one contained in the `query` argument. For example, a | |||
query like `avg(last_1h):avg:system.disk.in_use{role:sqlserver} by {host} > 90` would be fine with the `threshold` above, | |||
while `avg(last_1h):avg:system.disk.in_use{role:sqlserver} by {host} > 95` would be not, with the Datadog API returning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/would be not/is invalid
|
||
Nested `graph` `marker` blocks have the following structure: | ||
|
||
* `type` - (Required) How the marker lines will look. Possible values are {"error", "warning", "info", "ok"} {"dashed", "solid", "bold"}. Example: "error dashed". | ||
* `value` - (Required) Mathematical expression describing the marker. Examples: "y > 1", "-5 < y < 0", "y = 19". | ||
* `label` - (Optional) A label for the line or range. | ||
* `label` - (Optional) A label for the line or range. **Warning:** when a label is enabled but left empty through the UI, the Datadog API returns a boolean value, not a string, making `terraform plan` fail with a JSON decoding error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sentence seems long: we should maybe split ... not a string. This makes terraform ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds much better to me, thanks !
Improve documentation
This is an attempt to improve docs as a way to mitigate a few recurring issues. In some cases, a better documentation is the only workaround we can provide in the short term to mitigate known pain points.