Skip to content

Commit

Permalink
Add additional roles and regions to S3 monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 11, 2023
1 parent 375ea8d commit 0fcbd0c
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions cookbooks/prometheus/templates/default/cloudwatch.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 0fcbd0c

Please sign in to comment.