-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathmetrics.yaml
344 lines (344 loc) · 12.8 KB
/
metrics.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
documentation: docs/generated/metrics
destination: pkg/generated/metric_descriptions
namespaces:
arangodb_resources:
deployment_config_map:
inspected:
shortDescription: "Number of inspected ConfigMaps by Deployment"
description: "Number of inspected ConfigMaps by Deployment"
type: "Counter"
global: true
labels:
- key: deployment
description: "Deployment Name"
duration:
shortDescription: "Duration of inspected ConfigMaps by Deployment in seconds"
description: "Duration of inspected ConfigMaps by Deployment in seconds"
type: "Gauge"
global: true
labels:
- key: deployment
description: "Deployment Name"
arangodb_operator:
objects:
processed:
shortDescription: "Number of the processed objects"
description: "Number of the processed objects"
type: "Counter"
global: true
labels:
- key: operator_name
description: "Operator Name"
agency_cache:
present:
shortDescription: "Determines if local agency cache is present"
description: "Determines if local agency cache is present"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
health_present:
shortDescription: "Determines if local agency cache health is present"
description: "Determines if local agency cache health is present"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
serving:
shortDescription: "Determines if agency is serving"
description: "Determines if agency is serving"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
healthy:
shortDescription: "Determines if agency is healthy"
description: "Determines if agency is healthy"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
member_serving:
shortDescription: "Determines if agency member is reachable"
description: "Determines if agency member is reachable"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
- key: agent
description: "Agent ID"
member_commit_offset:
shortDescription: "Determines agency member commit offset"
description: "Determines agency member commit offset. Set to -1 if Agent is not reachable"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
- key: agent
description: "Agent ID"
leaders:
shortDescription: "Determines agency leader vote count"
description: "Determines agency leader vote count. Should be always one"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
- key: agent
description: "Agent ID"
agency:
index:
shortDescription: "Current index of the agency cache"
description: "Current index of the agency cache"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
fetches:
shortDescription: "Current count of agency cache fetches"
description: "Current count of agency cache fetches"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
errors:
shortDescription: "Current count of agency cache fetch errors"
description: "Current count of agency cache fetch errors"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
rebalancer:
enabled:
shortDescription: "Determines if rebalancer is enabled"
description: "Determines if rebalancer is enabled"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
moves_generated:
shortDescription: "Define how many moves were generated"
description: "Define how many moves were generated"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
moves_succeeded:
shortDescription: "Define how many moves succeeded"
description: "Define how many moves succeeded"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
moves_failed:
shortDescription: "Define how many moves failed"
description: "Define how many moves failed"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
moves_current:
shortDescription: "Define how many moves are currently in progress"
description: "Define how many moves are currently in progress"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
resources:
arangodeployment_status_restores:
shortDescription: "Counter for deployment status restored"
description: "Counter for deployment status restored"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
arangodeployment_validation_errors:
shortDescription: "Counter for deployment validation errors"
description: "Counter for deployment validation errors"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
arangodeployment_immutable_errors:
shortDescription: "Counter for deployment immutable errors"
description: "Counter for deployment immutable errors"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
arangodeployment_accepted:
shortDescription: "Defines if ArangoDeployment has been accepted"
description: "Defines if ArangoDeployment has been accepted"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
arangodeployment_propagated:
shortDescription: "Defines if ArangoDeployment Spec is propagated"
description: "Defines if ArangoDeployment Spec is propagated"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
arangodeployment_uptodate:
shortDescription: "Defines if ArangoDeployment is uptodate"
description: "Defines if ArangoDeployment is uptodate"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
arangodeploymentreplication_active:
shortDescription: "Defines if ArangoDeploymentReplication is configured and running"
description: "Defines if ArangoDeploymentReplication is configured and running"
type: "Gauge"
labels:
- key: namespace
description: "DeploymentReplication Namespace"
- key: name
description: "DeploymentReplication Name"
arangodeploymentreplication_failed:
shortDescription: "Defines if ArangoDeploymentReplication is in Failed phase"
description: "Defines if ArangoDeploymentReplication is in Failed phase"
type: "Gauge"
labels:
- key: namespace
description: "DeploymentReplication Namespace"
- key: name
description: "DeploymentReplication Name"
deployment:
conditions:
shortDescription: "Representation of the ArangoDeployment condition state (true/false)"
description: "Representation of the ArangoDeployment condition state (true/false)"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
- key: condition
description: "Condition Name"
members:
unexpected_container_exit_codes:
shortDescription: "Counter of unexpected restarts in pod (Containers/InitContainers/EphemeralContainers)"
description: "Counter of unexpected restarts in pod (Containers/InitContainers/EphemeralContainers)"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
- key: member
description: "Member ID"
- key: container
description: "Container Name"
- key: container_type
description: "Container/InitContainer/EphemeralContainer"
- key: code
description: "ExitCode"
- key: reason
description: "Reason"
conditions:
shortDescription: "Representation of the ArangoMember condition state (true/false)"
description: "Representation of the ArangoMember condition state (true/false)"
type: "Gauge"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
- key: member
description: "Member ID"
- key: condition
description: "Condition Name"
engine:
panics_recovered:
shortDescription: "Number of Panics recovered inside Operator reconciliation loop"
description: "Number of Panics recovered inside Operator reconciliation loop. Section represents recovery section"
type: "Counter"
labels:
- key: section
description: "Panic Section"
assertions:
shortDescription: "Number of assertions invoked during Operator runtime"
description: "Number of assertions invoked during Operator runtime"
type: "Counter"
labels:
- key: key
description: "Assertion Key"
alertingRules:
- priority: Warning
query: irate(arangodb_operator_engine_assertions[1m]) > 1
description: "Trigger an alert if OPS attention is needed"
ops_alerts:
shortDescription: "Counter for actions which requires ops attention"
description: "Counter for actions which requires ops attention"
type: "Counter"
labels:
- key: namespace
description: "Deployment Namespace"
- key: name
description: "Deployment Name"
alertingRules:
- priority: Warning
query: irate(arangodb_operator_engine_ops_alerts[1m]) > 1
description: "Trigger an alert if OPS attention is needed"
kubernetes_client:
requests:
shortDescription: "Number of Kubernetes Client requests"
description: "Number of Kubernetes Client requests"
type: "Counter"
labels:
- key: component
description: "K8S Resource name"
- key: verb
description: "Verb (create,update,update-status,patch,delete,force-delete)"
request_errors:
shortDescription: "Number of Kubernetes Client request errors"
description: "Number of Kubernetes Client request errors"
type: "Counter"
labels:
- key: component
description: "K8S Resource name"
- key: verb
description: "Verb (create,update,update-status,patch,delete,force-delete)"