resolv.conf solved!
This commit is contained in:
14
files/prometheus/rules.yaml
Normal file
14
files/prometheus/rules.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
groups:
|
||||
- name: node-exporter-rules
|
||||
rules:
|
||||
|
||||
# CPU count
|
||||
- record: instance:node_cpus:count
|
||||
expr: count(node_cpu_seconds_total{mode="idle"}) without (cpu,mode)
|
||||
|
||||
#взято отсюда
|
||||
# https://stackoverflow.com/questions/52480567/count-alerts-fired-by-prometheus
|
||||
- name: alerts
|
||||
rules:
|
||||
- record: ALERTS_FOR_STATE:firing
|
||||
expr: ALERTS_FOR_STATE and ignoring(alertstate) ALERTS{alertstate="firing"}
|
Reference in New Issue
Block a user