-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtests.yaml
25 lines (23 loc) · 944 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
rule_files:
- prometheus_alerts.yaml
evaluation_interval: 1m
tests:
- interval: 1m
input_series:
- series: 'coredns_nodecache_setup_errors{errortype="iptables", instance="192.168.1.220:9353", k8s_app="node-local-dns", name="node-local-dns-metrics", namespace="kube-system", pod="node-local-dns-sdfr6"}'
values: '0 100 200 300 400 500 600 700 800 900 1000 1100 1200'
alert_rule_test:
- eval_time: 11m
alertname: NodeLocalDNSSetupErrorsHigh
exp_alerts:
- exp_labels:
severity: critical
errortype: iptables
instance: 192.168.1.220:9353
k8s_app: node-local-dns
name: node-local-dns-metrics
namespace: kube-system
pod: node-local-dns-sdfr6
exp_annotations:
message: "There are iptables errors setting up Node Local DNS."
runbook_url: https://github.com/povilasv/nodelocaldns-mixin/tree/master/runbook.md#alert-name-nodelocaldnssetuperrorshigh