Rules
monitoring.googleapis.com / v1
apiVersion: monitoring.googleapis.com/v1
kind: Rules
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object required
Specification of rules to record and alert on.
groups []object required
A list of Prometheus rule groups.
interval
string required
The interval at which to evaluate the rules. Must be a valid Prometheus duration.
name
string required
The name of the rule group.
rules []object required
A list of rules that are executed sequentially as part of this group.
alert
string
Name of the alert to evaluate the expression as. Only one of `record` and `alert` must be set.
annotations
object
A set of annotations to attach to alerts produced by the query expression. Only valid if `alert` is set.
expr
string required
The PromQL expression to evaluate.
for
string
The duration to wait before a firing alert produced by this rule is sent to Alertmanager. Only valid if `alert` is set.
labels
object
A set of labels to attach to the result of the query expression.
record
string
Record the result of the expression to this metric name. Only one of `record` and `alert` must be set.
status
object
Most recently observed status of the resource.
No matches. Try .spec.groups for an exact path