From 80945970b948166cdce3da6967644b3f4893425f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 28 Jan 2021 22:36:45 +0000 Subject: [PATCH] Exclude some exporter metrics from promscale archiving --- cookbooks/prometheus/templates/default/prometheus.yml.erb | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.45.1