]> git.openstreetmap.org Git - chef.git/commitdiff
Add monitoring for AWS billing metrics
authorTom Hughes <tom@compton.nu>
Wed, 11 Oct 2023 18:52:04 +0000 (19:52 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 11 Oct 2023 18:52:04 +0000 (19:52 +0100)
cookbooks/prometheus/templates/default/cloudwatch.yml.erb

index 1d521ec3052c116af22abc85ab68c4b8168f226d..2c03efb31b80cb08cdc84ec1cfe3b0eeb70936e0 100644 (file)
@@ -180,3 +180,13 @@ discovery:
           statistics: [Sum]
         - name: NetworkPacketsOut
           statistics: [Sum]
           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]