From 0fcbd0cc77b45ba9a18a89a0bdb7421ff756f48c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 11 Oct 2023 14:59:01 +0100 Subject: [PATCH] Add additional roles and regions to S3 monitoring --- .../templates/default/cloudwatch.yml.erb | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb index 43eb9e3ae..1d6d441af 100644 --- a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb +++ b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb @@ -52,3 +52,104 @@ discovery: statistics: [Maximum] - name: OperationsFailedReplication statistics: [Sum] + - type: AWS/S3 + regions: + - eu-central-1 + - us-west-2 + roles: + - roleArn: "arn:aws:iam::630658470130:role/osm-cloudwatch-export-role" + period: 300 + length: 300 + metrics: + - name: BucketSizeBytes + statistics: [Average] + period: 86400 + length: 86400 + - name: NumberOfObjects + statistics: [Average] + period: 86400 + length: 86400 + - name: AllRequests + statistics: [Sum] + - name: GetRequests + statistics: [Sum] + - name: PutRequests + statistics: [Sum] + - name: DeleteRequests + statistics: [Sum] + - name: HeadRequests + statistics: [Sum] + - name: PostRequests + statistics: [Sum] + - name: ListRequests + statistics: [Sum] + - name: BytesDownloaded + statistics: [Sum] + - name: BytesUploaded + statistics: [Sum] + - name: 4xxErrors + statistics: [Sum] + - name: 5xxErrors + statistics: [Sum] + - name: FirstByteLatency + statistics: [Minimum, Maximum, Average] + - name: TotalRequestLatency + statistics: [Minimum, Maximum, Average] + - name: ReplicationLatency + statistics: [Maximum] + - name: BytesPendingReplication + statistics: [Maximum] + - name: OperationsPendingReplication + statistics: [Maximum] + - name: OperationsFailedReplication + statistics: [Sum] + - type: AWS/S3 + regions: + - eu-north-1 + roles: + - roleArn: "arn:aws:iam::674083635870:role/osm-cloudwatch-export-role" + period: 300 + length: 300 + metrics: + - name: BucketSizeBytes + statistics: [Average] + period: 86400 + length: 86400 + - name: NumberOfObjects + statistics: [Average] + period: 86400 + length: 86400 + - name: AllRequests + statistics: [Sum] + - name: GetRequests + statistics: [Sum] + - name: PutRequests + statistics: [Sum] + - name: DeleteRequests + statistics: [Sum] + - name: HeadRequests + statistics: [Sum] + - name: PostRequests + statistics: [Sum] + - name: ListRequests + statistics: [Sum] + - name: BytesDownloaded + statistics: [Sum] + - name: BytesUploaded + statistics: [Sum] + - name: 4xxErrors + statistics: [Sum] + - name: 5xxErrors + statistics: [Sum] + - name: FirstByteLatency + statistics: [Minimum, Maximum, Average] + - name: TotalRequestLatency + statistics: [Minimum, Maximum, Average] + - name: ReplicationLatency + statistics: [Maximum] + - name: BytesPendingReplication + statistics: [Maximum] + - name: OperationsPendingReplication + statistics: [Maximum] + - name: OperationsFailedReplication + statistics: [Sum] -- 2.39.5