]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/cloudwatch.yml.erb
Add additional roles and regions to S3 monitoring
[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]
55     - type: AWS/S3
56       regions:
57         - eu-central-1
58         - us-west-2
59       roles:
60         - roleArn: "arn:aws:iam::630658470130:role/osm-cloudwatch-export-role"
61       period: 300
62       length: 300
63       metrics:
64         - name: BucketSizeBytes
65           statistics: [Average]
66           period: 86400
67           length: 86400
68         - name: NumberOfObjects
69           statistics: [Average]
70           period: 86400
71           length: 86400
72         - name: AllRequests
73           statistics: [Sum]
74         - name: GetRequests
75           statistics: [Sum]
76         - name: PutRequests
77           statistics: [Sum]
78         - name: DeleteRequests
79           statistics: [Sum]
80         - name: HeadRequests
81           statistics: [Sum]
82         - name: PostRequests
83           statistics: [Sum]
84         - name: ListRequests
85           statistics: [Sum]
86         - name: BytesDownloaded
87           statistics: [Sum]
88         - name: BytesUploaded
89           statistics: [Sum]
90         - name: 4xxErrors
91           statistics: [Sum]
92         - name: 5xxErrors
93           statistics: [Sum]
94         - name: FirstByteLatency
95           statistics: [Minimum, Maximum, Average]
96         - name: TotalRequestLatency
97           statistics: [Minimum, Maximum, Average]
98         - name: ReplicationLatency
99           statistics: [Maximum]
100         - name: BytesPendingReplication
101           statistics: [Maximum]
102         - name: OperationsPendingReplication
103           statistics: [Maximum]
104         - name: OperationsFailedReplication
105           statistics: [Sum]
106     - type: AWS/S3
107       regions:
108         - eu-north-1
109       roles:
110         - roleArn: "arn:aws:iam::674083635870:role/osm-cloudwatch-export-role"
111       period: 300
112       length: 300
113       metrics:
114         - name: BucketSizeBytes
115           statistics: [Average]
116           period: 86400
117           length: 86400
118         - name: NumberOfObjects
119           statistics: [Average]
120           period: 86400
121           length: 86400
122         - name: AllRequests
123           statistics: [Sum]
124         - name: GetRequests
125           statistics: [Sum]
126         - name: PutRequests
127           statistics: [Sum]
128         - name: DeleteRequests
129           statistics: [Sum]
130         - name: HeadRequests
131           statistics: [Sum]
132         - name: PostRequests
133           statistics: [Sum]
134         - name: ListRequests
135           statistics: [Sum]
136         - name: BytesDownloaded
137           statistics: [Sum]
138         - name: BytesUploaded
139           statistics: [Sum]
140         - name: 4xxErrors
141           statistics: [Sum]
142         - name: 5xxErrors
143           statistics: [Sum]
144         - name: FirstByteLatency
145           statistics: [Minimum, Maximum, Average]
146         - name: TotalRequestLatency
147           statistics: [Minimum, Maximum, Average]
148         - name: ReplicationLatency
149           statistics: [Maximum]
150         - name: BytesPendingReplication
151           statistics: [Maximum]
152         - name: OperationsPendingReplication
153           statistics: [Maximum]
154         - name: OperationsFailedReplication
155           statistics: [Sum]