From de4127fba40675e6a6e6930d2c3525d14f329463 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 11 Oct 2023 19:52:04 +0100 Subject: [PATCH 1/1] Add monitoring for AWS billing metrics --- .../prometheus/templates/default/cloudwatch.yml.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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] -- 2.39.5