Skip to content

Commit

Permalink
feat: add snmp prometheus rule
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Jan 22, 2024
1 parent 1c329e6 commit 4af6f52
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions argocd/snmp-exporter/manifests/03_prometheus_rule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: snmp-exporter-alerts
spec:
groups:
- name: SNMPAlerts
rules:
- alert: SNMPDown
expr: up{job=~"snmp.*"} != 1
for: 5m
labels:
severity: critical
annotations:
description: 'SNMP device {{$labels.instance}} from job {{$labels.job}} is down.'
summary: SNMP device down.

0 comments on commit 4af6f52

Please sign in to comment.