X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/d058d9fb0695302bf5f79630bdf1f465f8ed1da0..20a03c97a1380a4f8531d44c7dfda386bd92ddb9:/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"