PrometheusRule.spec.groups
groups defines the content of Prometheus rule file
| Field / Type | Description |
|---|---|
interval | interval defines how often rules in the group are evaluated.
|
labels define the labels to add or overwrite before storing the result for its rules. The labels defined at the rule level take precedence. It requires Prometheus >= 3.0.0. The field is ignored for Thanos Ruler. | |
limit | limit defines the number of alerts an alerting rule and series a recording rule can produce. Limit is supported starting with Prometheus >= 2.31 and Thanos Ruler >= 0.24. |
name | name defines the name of the rule group.
|
partial_response_strategy | partial_response_strategy is only used by ThanosRuler and will be ignored by Prometheus instances. More info: https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md#partial-response
|
query_offset | query_offset defines the offset the rule evaluation timestamp of this particular group by the specified duration into the past. It requires Prometheus >= v2.53.0. It is not supported for ThanosRuler.
|
rules defines the list of alerting and recording rules. |