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