prometheus operator v0.93.1
PrometheusRule.spec.groups[].rules
rules defines the list of alerting and recording rules.
| Field / Type | Description |
|---|---|
alert | alert defines the name of the alert. Must be a valid label value. Only one of `record` and `alert` must be set. |
annotations defines annotations to add to each alert. Only valid for alerting rules. | |
expr defines the PromQL expression to evaluate.
| |
for | for defines how alerts are considered firing once they have been returned for this long.
|
keep_firing_for | keep_firing_for defines how long an alert will continue firing after the condition that triggered it has cleared.
|
labels defines labels to add or overwrite. | |
record | record defines the name of the time series to output to. Must be a valid metric name. Only one of `record` and `alert` must be set. |