X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/67a9b76ebb212b99bf39f98688e8d6d0e8bcbfc2..ef3e963c0c8532dcc2d2c132138e7e220db17b9f:/cookbooks/prometheus/templates/default/prometheus.yml.erb diff --git a/cookbooks/prometheus/templates/default/prometheus.yml.erb b/cookbooks/prometheus/templates/default/prometheus.yml.erb index 66051b622..591c1e0ec 100644 --- a/cookbooks/prometheus/templates/default/prometheus.yml.erb +++ b/cookbooks/prometheus/templates/default/prometheus.yml.erb @@ -16,8 +16,14 @@ 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" + +remote_read: + - url: "http://localhost:9201/read"