The Prometheus monitoring system and time series database.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
rule_files:
|
|
|
|
- rules.yml
|
|
|
|
|
|
|
|
tests:
|
|
|
|
# Simple failing test, depends on no rules.
|
|
|
|
- interval: 1m
|
|
|
|
name: "Failing test"
|
|
|
|
input_series:
|
|
|
|
- series: test
|
|
|
|
values: '0'
|
|
|
|
|
|
|
|
promql_expr_test:
|
|
|
|
- expr: test
|
|
|
|
eval_time: 0m
|
|
|
|
exp_samples:
|
|
|
|
- value: 1
|
|
|
|
labels: test
|
|
|
|
|
|
|
|
alert_rule_test:
|
|
|
|
- eval_time: 0m
|
|
|
|
alertname: Test
|
|
|
|
exp_alerts:
|
|
|
|
- exp_labels: {}
|
|
|
|
|
|
|
|
# Alerts firing, but no alert expected by the test.
|
|
|
|
- interval: 1m
|
|
|
|
name: Failing alert test
|
|
|
|
input_series:
|
|
|
|
- series: 'up{job="test"}'
|
|
|
|
values: 0x10
|
|
|
|
|
|
|
|
alert_rule_test:
|
|
|
|
- eval_time: 5m
|
|
|
|
alertname: InstanceDown
|
|
|
|
exp_alerts: []
|
|
|
|
- eval_time: 5m
|
|
|
|
alertname: AlwaysFiring
|
|
|
|
exp_alerts: []
|