]> git.openstreetmap.org Git - chef.git/commitdiff
Exclude some exporter metrics from promscale archiving
authorTom Hughes <tom@compton.nu>
Thu, 28 Jan 2021 22:36:45 +0000 (22:36 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 28 Jan 2021 22:36:45 +0000 (22:36 +0000)
cookbooks/prometheus/templates/default/prometheus.yml.erb

index c9112bac10e8b80dc13b5425fa27f2635d23b1b6..71ccf68a1b9f2136591cae03ad0f40a36120c16c 100644 (file)
@@ -48,3 +48,10 @@ scrape_configs:
 
 remote_write:
   - url: "http://localhost:9201/write"
+    write_relabel_configs:
+      - source_labels: [__name__]
+        regex: "go_.*"
+        action: drop
+      - source_labels: [__name__]
+        regex: "promhttp_.*"
+        action: drop