Merge pull request #1268 from paulfantom/alerts-best-practices

Alerts best practices
This commit is contained in:
Paweł Krupa
2021-07-21 09:32:32 +02:00
committed by GitHub
4 changed files with 7 additions and 161 deletions

View File

@@ -39,8 +39,9 @@ spec:
rules:
- alert: NodeNetworkInterfaceFlapping
annotations:
message: Network interface "{{ $labels.device }}" changing it's up status often on node-exporter {{ $labels.namespace }}/{{ $labels.pod }}
description: Network interface "{{ $labels.device }}" changing it's up status often on node-exporter {{ $labels.namespace }}/{{ $labels.pod }}
runbook_url: https://github.com/prometheus-operator/kube-prometheus/wiki/nodenetworkinterfaceflapping
summary: Network interface is often changin it's status
expr: |
changes(node_network_up{job="node-exporter",device!~"veth.+"}[2m]) > 2
for: 2m