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