Skip to content

Commit

Permalink
Enable some optional features for the cloudwatch exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 11, 2023
1 parent 71018df commit 375ea8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cookbooks/prometheus/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
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]"
Expand Down

0 comments on commit 375ea8d

Please sign in to comment.