X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/be1740f62e0ee94c7a4b238b9d5c11cf9858aca9..68a4578df5a1ba3b1cd0a48020a032411c5b804d:/cookbooks/prometheus/templates/default/cloudwatch.yml.erb diff --git a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb index 43eb9e3ae..08a7fe1ee 100644 --- a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb +++ b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb @@ -1,4 +1,5 @@ apiVersion: v1alpha1 +sts-region: eu-west-1 discovery: jobs: - type: AWS/S3 @@ -6,7 +7,7 @@ discovery: - eu-west-1 - eu-west-2 roles: - - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" + - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main period: 300 length: 300 metrics: @@ -52,3 +53,143 @@ 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" # osm-planet (pds) + 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" # osm-backup + 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/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] + - type: AWS/Billing + regions: + - us-east-1 + roles: + - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main + - roleArn: "arn:aws:iam::674083635870:role/osm-cloudwatch-export-role" # osm-backup + - roleArn: "arn:aws:iam::683740446523:role/osm-cloudwatch-export-role" # osm-render + # Note osm-planet is billed direct to AWS Open Data Program + period: 21600 + length: 21600 + metrics: + - name: EstimatedCharges + statistics: [Sum]