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: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,8 @@ Examples:
153
153
| total=2 firing=1 pending=0 inactive=1
154
154
155
155
Flags:
156
+
-S, --state-label-key string Use the given AlertRule label to override the exit state for firing alerts.
157
+
If this flag is set the plugin looks for warning/critical/ok in the provided label key
156
158
--exclude-alert stringArray Alerts to ignore. Can be used multiple times and supports regex.
157
159
--exclude-label stringArray The label of one or more specific alerts to exclude.
158
160
This parameter can be repeated e.g.: '--exclude-label prio=high --exclude-label another=example'
@@ -168,14 +170,11 @@ Flags:
168
170
If no name is given, all alerts will be evaluated
169
171
-T, --no-alerts-state string State to assign when no alerts are found (0, 1, 2, 3, OK, WARNING, CRITICAL, UNKNOWN). If not set this defaults to OK (default "OK")
170
172
-P, --problems Display only alerts which status is not inactive/OK. Note that in combination with the --name flag this might result in no alerts being displayed
171
-
-K, --state-labels-key string Label key for the --use-state-labels. Can be used to override the default label key 'icingaState' (default "icingaState")
172
-
-S, --use-state-labels Use the AlertRule label 'icingaState' to override the exit state for firing alerts.
173
-
If this flag is set the plugin looks for warning/critical/ok in the label 'icingaState'
174
173
```
175
174
176
-
The `--use-state-labels` can be used to override the exit code for firing alerts.
177
-
If the flag is active, the plugin looks for the label key (icingaState) on the AlertRule and uses
178
-
the specified as label values (warning/critical/ok).
175
+
The `--state-label-key` can be used to override the exit code for firing alerts.
176
+
When the flag is set, the plugin looks for the given label key on the AlertRule and uses
177
+
the specified as label values (`warning/critical/ok`) as exit code..
0 commit comments