From 4af6f52a6ff8b5c0d3dc7aa1ca040dae016517cc Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 22 Jan 2024 23:10:52 +0000 Subject: [PATCH] feat: add snmp prometheus rule --- .../manifests/03_prometheus_rule.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 argocd/snmp-exporter/manifests/03_prometheus_rule.yaml diff --git a/argocd/snmp-exporter/manifests/03_prometheus_rule.yaml b/argocd/snmp-exporter/manifests/03_prometheus_rule.yaml new file mode 100644 index 000000000..b3bbabcc6 --- /dev/null +++ b/argocd/snmp-exporter/manifests/03_prometheus_rule.yaml @@ -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.