]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/cloudwatch.yml.erb
43eb9e3ae682fa4209f84158113a822993bd6547
[chef.git] / cookbooks / prometheus / templates / default / cloudwatch.yml.erb
1 apiVersion: v1alpha1
2 discovery:
3   jobs:
4     - type: AWS/S3
5       regions:
6         - eu-west-1
7         - eu-west-2
8       roles:
9         - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role"
10       period: 300
11       length: 300
12       metrics:
13         - name: BucketSizeBytes
14           statistics: [Average]
15           period: 86400
16           length: 86400
17         - name: NumberOfObjects
18           statistics: [Average]
19           period: 86400
20           length: 86400
21         - name: AllRequests
22           statistics: [Sum]
23         - name: GetRequests
24           statistics: [Sum]
25         - name: PutRequests
26           statistics: [Sum]
27         - name: DeleteRequests
28           statistics: [Sum]
29         - name: HeadRequests
30           statistics: [Sum]
31         - name: PostRequests
32           statistics: [Sum]
33         - name: ListRequests
34           statistics: [Sum]
35         - name: BytesDownloaded
36           statistics: [Sum]
37         - name: BytesUploaded
38           statistics: [Sum]
39         - name: 4xxErrors
40           statistics: [Sum]
41         - name: 5xxErrors
42           statistics: [Sum]
43         - name: FirstByteLatency
44           statistics: [Minimum, Maximum, Average]
45         - name: TotalRequestLatency
46           statistics: [Minimum, Maximum, Average]
47         - name: ReplicationLatency
48           statistics: [Maximum]
49         - name: BytesPendingReplication
50           statistics: [Maximum]
51         - name: OperationsPendingReplication
52           statistics: [Maximum]
53         - name: OperationsFailedReplication
54           statistics: [Sum]