Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request prometheus#771 from prometheus/superq/mixin_summary
Browse files Browse the repository at this point in the history
Fixup snmp mixin
  • Loading branch information
RichiH authored Jun 21, 2022
2 parents c9f920e + fc1cf45 commit c38cee6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion snmp-mixin/alerts/snmp_general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ groups:
severity: critical
annotations:
description: 'SNMP device {{$labels.instance}} from job {{$labels.job}} is down.'
summary: SNMP device down
summary: SNMP device down.
8 changes: 4 additions & 4 deletions snmp-mixin/alerts/snmp_ubiquiti_wifi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ groups:
expr: (sum by (instance) (irate(unifiVapRxDropped{job=~"snmp.*"}[5m])) + sum by (instance) (irate(unifiVapRxErrors{job=~"snmp.*"}[5m]))) / sum by (instance) (irate(unifiVapRxPackets{job=~"snmp.*"}[5m])) > 0.2
for: 5m
labels:
severity: error
severity: warning
annotations:
description: 'Access point {{$labels.instance}} from job {{$labels.job}} has input error rate > 20%.'
summary: High input error rate
summary: High input error rate.
- alert: SNMPUbiquitiTxErrorRate
expr: (sum by (instance) (irate(unifiVapTxDropped{job=~"snmp.*"}[5m])) + sum by (instance) (irate(unifiVapTxErrors{job=~"snmp.*"}[5m]))) / sum by (instance) (irate(unifiVapTxPackets{job=~"snmp.*"}[5m])) > 0.05
for: 5m
labels:
severity: error
severity: warning
annotations:
description: 'Access point {{$labels.instance}} from job {{$labels.job}} has output error rate > 5%.'
summary: High output error rate
summary: High output error rate.

0 comments on commit c38cee6

Please sign in to comment.