]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/cloudwatch.yml.erb
cloudwatch: Own job for Replication Metrics
[chef.git] / cookbooks / prometheus / templates / default / cloudwatch.yml.erb
1 apiVersion: v1alpha1
2 sts-region: eu-west-1
3 discovery:
4   jobs:
5     - type: AWS/S3
6       regions:
7         - eu-west-1
8         - eu-west-2
9       roles:
10         - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main
11       period: 300
12       length: 300
13       metrics:
14         - name: BucketSizeBytes
15           statistics: [Average]
16           period: 86400
17           length: 86400
18         - name: NumberOfObjects
19           statistics: [Average]
20           period: 86400
21           length: 86400
22         - name: AllRequests
23           statistics: [Sum]
24         - name: GetRequests
25           statistics: [Sum]
26         - name: PutRequests
27           statistics: [Sum]
28         - name: DeleteRequests
29           statistics: [Sum]
30         - name: HeadRequests
31           statistics: [Sum]
32         - name: PostRequests
33           statistics: [Sum]
34         - name: ListRequests
35           statistics: [Sum]
36         - name: BytesDownloaded
37           statistics: [Sum]
38         - name: BytesUploaded
39           statistics: [Sum]
40         - name: 4xxErrors
41           statistics: [Sum]
42         - name: 5xxErrors
43           statistics: [Sum]
44         - name: FirstByteLatency
45           statistics: [Minimum, Maximum, Average]
46         - name: TotalRequestLatency
47           statistics: [Minimum, Maximum, Average]
48         - name: OperationsFailedReplication
49           statistics: [Sum]
50     - type: AWS/S3
51       regions:
52         - eu-north-1
53       roles:
54         - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main
55       period: 300
56       length: 300
57       metrics:
58         - name: ReplicationLatency
59           statistics: [Maximum]
60         - name: BytesPendingReplication
61           statistics: [Maximum]
62         - name: OperationsPendingReplication
63           statistics: [Maximum]
64     - type: AWS/S3
65       regions:
66         - eu-central-1
67         - us-west-2
68       roles:
69         - roleArn: "arn:aws:iam::630658470130:role/osm-cloudwatch-export-role" # osm-planet (pds)
70       period: 300
71       length: 300
72       metrics:
73         - name: BucketSizeBytes
74           statistics: [Average]
75           period: 86400
76           length: 86400
77         - name: NumberOfObjects
78           statistics: [Average]
79           period: 86400
80           length: 86400
81         - name: AllRequests
82           statistics: [Sum]
83         - name: GetRequests
84           statistics: [Sum]
85         - name: PutRequests
86           statistics: [Sum]
87         - name: DeleteRequests
88           statistics: [Sum]
89         - name: HeadRequests
90           statistics: [Sum]
91         - name: PostRequests
92           statistics: [Sum]
93         - name: ListRequests
94           statistics: [Sum]
95         - name: BytesDownloaded
96           statistics: [Sum]
97         - name: BytesUploaded
98           statistics: [Sum]
99         - name: 4xxErrors
100           statistics: [Sum]
101         - name: 5xxErrors
102           statistics: [Sum]
103         - name: FirstByteLatency
104           statistics: [Minimum, Maximum, Average]
105         - name: TotalRequestLatency
106           statistics: [Minimum, Maximum, Average]
107         - name: ReplicationLatency
108           statistics: [Maximum]
109         - name: BytesPendingReplication
110           statistics: [Maximum]
111         - name: OperationsPendingReplication
112           statistics: [Maximum]
113         - name: OperationsFailedReplication
114           statistics: [Sum]
115     - type: AWS/S3
116       regions:
117         - eu-north-1
118       roles:
119         - roleArn: "arn:aws:iam::674083635870:role/osm-cloudwatch-export-role" # osm-backup
120       period: 300
121       length: 300
122       metrics:
123         - name: BucketSizeBytes
124           statistics: [Average]
125           period: 86400
126           length: 86400
127         - name: NumberOfObjects
128           statistics: [Average]
129           period: 86400
130           length: 86400
131         - name: AllRequests
132           statistics: [Sum]
133         - name: GetRequests
134           statistics: [Sum]
135         - name: PutRequests
136           statistics: [Sum]
137         - name: DeleteRequests
138           statistics: [Sum]
139         - name: HeadRequests
140           statistics: [Sum]
141         - name: PostRequests
142           statistics: [Sum]
143         - name: ListRequests
144           statistics: [Sum]
145         - name: BytesDownloaded
146           statistics: [Sum]
147         - name: BytesUploaded
148           statistics: [Sum]
149         - name: 4xxErrors
150           statistics: [Sum]
151         - name: 5xxErrors
152           statistics: [Sum]
153         - name: FirstByteLatency
154           statistics: [Minimum, Maximum, Average]
155         - name: TotalRequestLatency
156           statistics: [Minimum, Maximum, Average]
157     - type: AWS/EC2
158       regions:
159         - us-east-2
160       roles:
161         - roleArn: "arn:aws:iam::683740446523:role/osm-cloudwatch-export-role" # osm-render
162       period: 300
163       length: 300
164       metrics:
165         - name: CPUUtilization
166           statistics: [Average]
167         - name: DiskReadOps
168           statistics: [Sum]
169         - name: DiskWriteOps
170           statistics: [Sum]
171         - name: DiskReadBytes
172           statistics: [Sum]
173         - name: DiskWriteBytes
174           statistics: [Sum]
175         - name: NetworkIn
176           statistics: [Sum]
177         - name: NetworkOut
178           statistics: [Sum]
179         - name: NetworkPacketsIn
180           statistics: [Sum]
181         - name: NetworkPacketsOut
182           statistics: [Sum]
183     - type: AWS/Billing
184       regions:
185         - us-east-1
186       roles:
187         - roleArn: "arn:aws:iam::173189593406:role/osm-cloudwatch-export-role" # osm-main
188         - roleArn: "arn:aws:iam::674083635870:role/osm-cloudwatch-export-role" # osm-backup
189         - roleArn: "arn:aws:iam::683740446523:role/osm-cloudwatch-export-role" # osm-render
190         # Note osm-planet is billed direct to AWS Open Data Program
191       period: 21600
192       length: 21600
193       metrics:
194         - name: EstimatedCharges
195           statistics: [Sum]