X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/71018df1f3d65d812dcd71729750a2f2c1aad0ac..116603252e113ecfd4073cee6a85127d02fc2282:/cookbooks/prometheus/recipes/server.rb?ds=inline diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 902844c3d..c1b7df2c6 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -55,7 +55,11 @@ prometheus_exporter "cloudwatch" do address "127.0.0.1" port 5000 listen_switch "listen-address" - options "--config.file=/etc/prometheus/cloudwatch.yml" + options %w[ + --config.file=/etc/prometheus/cloudwatch.yml + --enable-feature=aws-sdk-v2 + --enable-feature=always-return-info-metrics + ] environment "AWS_ACCESS_KEY_ID" => "AKIASQUXHPE7JHG37EA6", "AWS_SECRET_ACCESS_KEY" => tokens["cloudwatch"] subscribes :restart, "template[/etc/prometheus/cloudwatch.yml]"