From: Tom Hughes Date: Thu, 28 Jan 2021 22:36:45 +0000 (+0000) Subject: Exclude some exporter metrics from promscale archiving X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/80945970b948166cdce3da6967644b3f4893425f?ds=sidebyside Exclude some exporter metrics from promscale archiving --- diff --git a/cookbooks/prometheus/templates/default/prometheus.yml.erb b/cookbooks/prometheus/templates/default/prometheus.yml.erb index c9112bac1..71ccf68a1 100644 --- a/cookbooks/prometheus/templates/default/prometheus.yml.erb +++ b/cookbooks/prometheus/templates/default/prometheus.yml.erb @@ -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