Add alert settings for router.
This commit is contained in:
parent
f9f795e234
commit
291e369aba
21
cookbooks/prometheus/files/etc/prometheus.d/alerts/snmp.yml
Normal file
21
cookbooks/prometheus/files/etc/prometheus.d/alerts/snmp.yml
Normal file
@ -0,0 +1,21 @@
|
||||
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%"
|
||||
|
Loading…
Reference in New Issue
Block a user