]> git.openstreetmap.org Git - chef.git/commitdiff
Add a module label to snmp metrics
authorTom Hughes <tom@compton.nu>
Tue, 15 Nov 2022 22:00:50 +0000 (22:00 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Nov 2022 22:00:50 +0000 (22:00 +0000)
cookbooks/prometheus/templates/default/prometheus.yml.erb

index 50a074eb1bcca240bfbd69ce3831274b0c0e32ea..0caf619a29af8913011ce2a59169fb023ab42dfb 100644 (file)
@@ -109,6 +109,9 @@ scrape_configs:
       - source_labels: [__address__]
         regex: "[^/]+/([^/]+)/.*"
         target_label: __param_module
+      - source_labels: [__address__]
+        regex: "[^/]+/([^/]+)/.*"
+        target_label: module
       - source_labels: [__address__]
         regex: "[^/]+/[^/]+/(.*)"
         target_label: __address__