]> git.openstreetmap.org Git - chef.git/commitdiff
Add alert for node exporter text file scrape errors
authorTom Hughes <tom@compton.nu>
Mon, 18 Mar 2024 17:28:05 +0000 (17:28 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 18 Mar 2024 17:28:05 +0000 (17:28 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 632fddc9f1baf15cea5c6c12f8d29d2a57aff1a7..7afa799e8ad2b234f9537b2c01ef80ff4be8aa86 100644 (file)
@@ -612,6 +612,11 @@ groups:
         for: 10m
         labels:
           alertgroup: "prometheus"
+      - alert: node exporter text file scrape error
+        expr: node_textfile_scrape_error > 0
+        for: 10m
+        labels:
+          alertgroup: "prometheus"
   - name: raid
     rules:
       - alert: raid controller battery failed