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

index 810186e0737f9000d6e4028e39d897ca9a993335..1d521ec3052c116af22abc85ab68c4b8168f226d 100644 (file)
@@ -154,3 +154,29 @@ discovery:
           statistics: [Maximum]
         - name: OperationsFailedReplication
           statistics: [Sum]
+    - type: AWS/EC2
+      regions:
+        - us-east-2
+      roles:
+        - roleArn: "arn:aws:iam::683740446523:role/osm-cloudwatch-export-role" # osm-render
+      period: 300
+      length: 300
+      metrics:
+        - name: CPUUtilization
+          statistics: [Average]
+        - name: DiskReadOps
+          statistics: [Sum]
+        - name: DiskWriteOps
+          statistics: [Sum]
+        - name: DiskReadBytes
+          statistics: [Sum]
+        - name: DiskWriteBytes
+          statistics: [Sum]
+        - name: NetworkIn
+          statistics: [Sum]
+        - name: NetworkOut
+          statistics: [Sum]
+        - name: NetworkPacketsIn
+          statistics: [Sum]
+        - name: NetworkPacketsOut
+          statistics: [Sum]