From: Tom Hughes Date: Wed, 11 Oct 2023 18:52:04 +0000 (+0100) Subject: Add monitoring for AWS billing metrics X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/de4127fba40675e6a6e6930d2c3525d14f329463 Add monitoring for AWS billing metrics --- diff --git a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb index 1d521ec30..2c03efb31 100644 --- a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb +++ b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb @@ -180,3 +180,13 @@ discovery: statistics: [Sum] - name: NetworkPacketsOut statistics: [Sum] + - type: AWS/Billing + regions: + - us-east-1 + roles: + - roleArn: "arn:aws:iam::683740446523:role/osm-cloudwatch-export-role" # osm-render + period: 300 + length: 300 + metrics: + - name: EstimatedCharges + statistics: [Sum]