From 53ee52cfe367347cb18e0242d0ce2f83e3417906 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 11 Oct 2023 19:18:33 +0100 Subject: [PATCH] Add monitoring for some EC2 metrics --- .../templates/default/cloudwatch.yml.erb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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] -- 2.39.5