X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/bb670c9eb8501639d3073dfa54c2d921ca8da5ee..c810e6117c2e4e131aa859942566e2734e815148:/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 812f32299..d972d2948 100644 --- a/cookbooks/prometheus/templates/default/prometheus.yml.erb +++ b/cookbooks/prometheus/templates/default/prometheus.yml.erb @@ -84,6 +84,9 @@ scrape_configs: - "<%= target[:target] %>/<%= target[:module] %>/<%= target[:address] %>" labels: instance: <%= target[:instance] %> +<% target[:labels].sort.each do |name, value| -%> + <%= name %>: <%= value %> +<% end -%> <% end -%> relabel_configs: - source_labels: [__address__]