You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/data-sources/monitor.md
+6
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,12 @@ data "mackerel_monitor" "this" {
68
68
*`operator` - The comparison operator to determines the conditions that state whether the designated variable is either big or small. The observed value is on the left of the operator and the designated value is on the right.
69
69
*`warning` - The threshold that generates a warning alert.
70
70
*`critical` - The threshold that generates a critical alert.
71
+
*`query` - The settings for the monitor of query monitoring.
72
+
*`query` - The PromQL-style query.
73
+
*`legend` - The query legend.
74
+
*`operator` - The comparison operator to determines the conditions that state whether the designated variable is either big or small. The observed value is on the left of the operator and the designated value is on the right.
75
+
*`warning` - The threshold that generates a warning alert.
76
+
*`critical` - The threshold that generates a critical alert.
71
77
*`anomaly_detection` - The settings for the monitor of Anomaly Detection for roles.
72
78
*`scopes` - Expression of the monitoring target. Only valid for graph sequences that become one line.
73
79
*`warning_sensitivity` - The sensitivity to generates warning alerts.
query = "sum by (k8s.node.name) (container.cpu.utilization{k8s.deployment.name=\"httpbin\"})"
104
+
legend = "cpu.utilization {{k8s.node.name}}"
105
+
operator = ">"
106
+
warning = "0.7"
107
+
critical = "0.9"
108
+
}
109
+
}
110
+
```
111
+
96
112
### anomaly_detection
97
113
98
114
```terraform
@@ -170,6 +186,14 @@ The following arguments are required:
170
186
*`warning` - (Required, at least one of `warning` or `critical`) The threshold that generates a warning alert.
171
187
*`critical` - (Required, at least one of `warning` or `critical`) The threshold that generates a critical alert.
172
188
189
+
### query
190
+
191
+
*`query` - (Required) The PromQL-style query.
192
+
*`legend` - The query legend.
193
+
*`operator` - (Required) The comparison operator to determines the conditions that state whether the designated variable is either big or small. The observed value is on the left of the operator and the designated value is on the right. Valid values are `>` and `<`.
194
+
*`warning` - (Required, at least one of `warning` or `critical`) The threshold that generates a warning alert.
195
+
*`critical` - (Required, at least one of `warning` or `critical`) The threshold that generates a critical alert.
196
+
173
197
### anomaly_detection
174
198
175
199
*`scopes` - (Required) Expression of the monitoring target. Only valid for graph sequences that become one line.
0 commit comments