X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/67a9b76ebb212b99bf39f98688e8d6d0e8bcbfc2..ac279eeeae75039bf84ffffdbb849b37bf554a75:/cookbooks/prometheus/templates/default/prometheus.yml.erb?ds=sidebyside diff --git a/cookbooks/prometheus/templates/default/prometheus.yml.erb b/cookbooks/prometheus/templates/default/prometheus.yml.erb index 66051b622..c6ace499b 100644 --- a/cookbooks/prometheus/templates/default/prometheus.yml.erb +++ b/cookbooks/prometheus/templates/default/prometheus.yml.erb @@ -16,8 +16,11 @@ scrape_configs: static_configs: <% targets.each do |target| -%> - targets: - - <%= target[:address] %> + - "<%= target[:address] %>" labels: instance: <%= target[:name].split(".").first %> <% end -%> <% end -%> + +# remote_write: +# - url: "http://localhost:9201/write"