X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/acd1a016748bd3f8b47b370b9a7c15cbf44162f1..253e0ba76148286b5bd69a11225dda24e7195934:/cookbooks/prometheus/recipes/server.rb diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index e10e9e4ce..6a1219ca0 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -22,6 +22,14 @@ include_recipe "apt" include_recipe "networking" passwords = data_bag_item("prometheus", "passwords") +tokens = data_bag_item("prometheus", "tokens") + +prometheus_exporter "fastly" do + port 8080 + listen_switch "endpoint" + listen_type "url" + environment "FASTLY_API_TOKEN" => tokens["fastly"] +end package "prometheus"