From: Tom Hughes Date: Wed, 11 Oct 2023 18:18:33 +0000 (+0100) Subject: Add monitoring for some EC2 metrics X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/53ee52cfe367347cb18e0242d0ce2f83e3417906 Add monitoring for some EC2 metrics --- diff --git a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb index 810186e07..1d521ec30 100644 --- a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb +++ b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb @@ -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]