X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ff13884a1e237c946502c2a4c67dbb12c9eebdbd..cf104d6ba87464701b5abe7ce7264ecbc0c261b9:/cookbooks/prometheus/templates/default/prometheus.yml.erb?ds=inline diff --git a/cookbooks/prometheus/templates/default/prometheus.yml.erb b/cookbooks/prometheus/templates/default/prometheus.yml.erb index d90c8292b..71ccf68a1 100644 --- a/cookbooks/prometheus/templates/default/prometheus.yml.erb +++ b/cookbooks/prometheus/templates/default/prometheus.yml.erb @@ -35,10 +35,8 @@ scrape_configs: - "<%= target[:address] %>" labels: instance: <%= target[:instance] %> -<% end -%> <% end -%> metric_relabel_configs: -<% @jobs.sort.each do |name, targets| -%> <% targets.each do |target| -%> <% target[:metric_relabel].each do |relabel| -%> - source_labels: [instance,<%= relabel[:source_labels] %>] @@ -48,5 +46,12 @@ scrape_configs: <% end -%> <% end -%> -# remote_write: -# - url: "http://localhost:9201/write" +remote_write: + - url: "http://localhost:9201/write" + write_relabel_configs: + - source_labels: [__name__] + regex: "go_.*" + action: drop + - source_labels: [__name__] + regex: "promhttp_.*" + action: drop