X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0ecbf7b288994e618ba8765f20efcf61cd01f6ae..50aea11082eaa90bd37593b9c987d38a082f4e1b:/cookbooks/prometheus/templates/default/cloudwatch.yml.erb?ds=inline diff --git a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb index fc61acd9b..bab5559b1 100644 --- a/cookbooks/prometheus/templates/default/cloudwatch.yml.erb +++ b/cookbooks/prometheus/templates/default/cloudwatch.yml.erb @@ -8,17 +8,22 @@ discovery: - eu-west-2 roles: - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main - period: 300 - length: 300 + period: 86400 + length: 86400 metrics: - name: BucketSizeBytes statistics: [Average] - period: 86400 - length: 172800 - name: NumberOfObjects statistics: [Average] - period: 86400 - length: 172800 + - type: AWS/S3 + regions: + - eu-west-1 + - eu-west-2 + roles: + - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main + period: 300 + length: 300 + metrics: - name: AllRequests statistics: [Sum] - name: GetRequests @@ -59,17 +64,22 @@ discovery: - us-west-2 roles: - roleArn: "arn:aws:iam::630658470130:role/osm-cloudwatch-export-role" # osm-planet (pds) - period: 300 - length: 300 + period: 86400 + length: 86400 metrics: - name: BucketSizeBytes statistics: [Average] - period: 86400 - length: 172800 - name: NumberOfObjects statistics: [Average] - period: 86400 - length: 172800 + - 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: AllRequests statistics: [Sum] - name: GetRequests @@ -109,17 +119,21 @@ discovery: - eu-north-1 roles: - roleArn: "arn:aws:iam::674083635870:role/osm-cloudwatch-export-role" # osm-backup - period: 300 - length: 300 + period: 86400 + length: 86400 metrics: - name: BucketSizeBytes statistics: [Average] - period: 86400 - length: 172800 - name: NumberOfObjects statistics: [Average] - period: 86400 - length: 172800 + - 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: AllRequests statistics: [Sum] - name: GetRequests @@ -193,3 +207,108 @@ discovery: metrics: - name: EstimatedCharges statistics: [Sum] +static: + - namespace: AWS/S3 + name: gps-images-replication + regions: + - eu-north-1 + roles: + - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main + dimensions: + - name: RuleId + value: full-bucket-replication + - name: SourceBucket + value: openstreetmap-gps-images + - name: DestinationBucket + value: openstreetmap-gps-images-replicate + metrics: + - name: ReplicationLatency + statistics: [Maximum] + period: 300 + length: 300 + - name: BytesPendingReplication + statistics: [Maximum] + period: 300 + length: 300 + - name: OperationsPendingReplication + statistics: [Maximum] + period: 300 + length: 300 + - namespace: AWS/S3 + name: gps-traces-replication + regions: + - eu-north-1 + roles: + - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main + dimensions: + - name: RuleId + value: full-bucket-replication + - name: SourceBucket + value: openstreetmap-gps-traces + - name: DestinationBucket + value: openstreetmap-gps-traces-replicate + metrics: + - name: ReplicationLatency + statistics: [Maximum] + period: 300 + length: 300 + - name: BytesPendingReplication + statistics: [Maximum] + period: 300 + length: 300 + - name: OperationsPendingReplication + statistics: [Maximum] + period: 300 + length: 300 + - namespace: AWS/S3 + name: user-avatars-replication + regions: + - eu-north-1 + roles: + - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main + dimensions: + - name: RuleId + value: full-bucket-replication + - name: SourceBucket + value: openstreetmap-user-avatars + - name: DestinationBucket + value: openstreetmap-user-avatars-replicate + metrics: + - name: ReplicationLatency + statistics: [Maximum] + period: 300 + length: 300 + - name: BytesPendingReplication + statistics: [Maximum] + period: 300 + length: 300 + - name: OperationsPendingReplication + statistics: [Maximum] + period: 300 + length: 300 + - namespace: AWS/S3 + name: aws-cloudtrail-replication + regions: + - eu-north-1 + roles: + - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main + dimensions: + - name: RuleId + value: full-bucket-replication + - name: SourceBucket + value: openstreetmap-aws-cloudtrail + - name: DestinationBucket + value: openstreetmap-aws-cloudtrail-replicate + metrics: + - name: ReplicationLatency + statistics: [Maximum] + period: 300 + length: 300 + - name: BytesPendingReplication + statistics: [Maximum] + period: 300 + length: 300 + - name: OperationsPendingReplication + statistics: [Maximum] + period: 300 + length: 300