prometheus.rules.json
Prometheus rules file
| Type | object | null |
|---|---|
| File match |
*.prometheus.rules.yml
*.prometheus.rules.yaml
*prometheus-rules.yml
*prometheus-rules.yaml
*prometheus_rules.yml
*prometheus_rules.yaml
prometheus.rules.yml
prometheus.rules.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/prometheus-rules-json/latest.json |
| Source | https://www.schemastore.org/prometheus.rules.json |
Validate with Lintel
npx @lintel/lintel check
Type:
object | null
Prometheus rules file
Properties
groups
array | null
Definitions
duration
string | null
label_name
string
label_value
string
labels
object | null
tmpl_string
string
A string which is template-expanded before usage.
annotations
object | null
recording_rule
object
record
string
required
The name of the time series to output to. Must be a valid metric name.
expr
string | integer
required
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.
labels
object | null
alerting_rule
object
alert
string
required
The name of the alert. Must be a valid metric name.
expr
string | integer
required
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts.
for
string | null
minLength=1pattern=^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$
keep_firing_for
string | null
minLength=1pattern=^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$
labels
object | null
annotations
object | null