itamae/cookbooks/prometheus/files/etc/prometheus.d/alerts/snmp.yml

22 lines
692 B
YAML
Raw Permalink Normal View History

2020-10-24 04:15:11 +00:00
groups:
- name: snmp
rules:
- alert: NetworkInboundBandwidth
expr: ((delta(ifHCInOctets{ifName="bond0"}[10m]) * 8 * 100) / (600 * ifSpeed{ifName="bond0"})) * 100 > 80
for: 1m
labels:
severity: warning
annotations:
summary: "Network Bandwidth (inbound) exceeds 80%"
description: "Network Bandwidth (inbound) exceeds 80%"
- alert: NetworkOutboundBandwidth
expr: ((delta(ifHCOutOctets{ifName="bond0"}[10m]) * 8 * 100) / (600 * ifSpeed{ifName="bond0"})) * 100 > 80
for: 1m
labels:
severity: warning
annotations:
summary: "Network Bandwidth (outbound) exceeds 80%"
description: "Network Bandwidth (outbound) exceeds 80%"