-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcht.yml
382 lines (365 loc) · 13.3 KB
/
cht.yml
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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
# Reusable extensions (used for pushing data from different parts of the JSON to the same metric)
x-cht_couchdb_doc_total: &cht_couchdb_doc_total
name: cht_couchdb_doc_total
help: The number of docs in the db.
valuetype: counter
x-cht_couchdb_doc_del_total: &cht_couchdb_doc_del_total
name: cht_couchdb_doc_del_total
help: The number of deleted docs in the db.
valuetype: counter
x-cht_couchdb_fragmentation: &cht_couchdb_fragmentation
name: cht_couchdb_fragmentation
help: The fragmentation of the entire db (including view indexes) as stored on disk. A lower value is better. `1` is no fragmentation.
valuetype: gauge
x-cht_couchdb_size_bytes: &cht_couchdb_size_bytes
name: cht_couchdb_size_bytes
help: The size in bytes of the database. This includes documents, metadata, and attachments, but does not include view indexes.
valuetype: gauge
x-cht_couchdb_update_sequence: &cht_couchdb_update_sequence
name: cht_couchdb_update_sequence
help: The number of changes in the db.
valuetype: counter
x-cht_messaging_outgoing_last_hundred: &cht_messaging_outgoing_last_hundred
name: cht_messaging_outgoing_last_hundred
help: Counts of last 100 messages that have received status updates.
valuetype: gauge
x-cht_messaging_outgoing_total: &cht_messaging_outgoing_total
name: cht_messaging_outgoing_total
help: Counts of the total number of messages.
valuetype: counter
x-cht_couchdb_view_index_size_bytes: &cht_couchdb_view_index_size_bytes
name: cht_couchdb_view_index_size_bytes
help: The size in bytes the view.
valuetype: gauge
modules:
default:
metrics:
- name: cht
type: object
help: Version information for the CHT instance (recorded in labels)
path: '{.version}'
labels:
app: '{.app}'
node: '{.node}'
couchdb: '{.couchdb}'
values:
version: 1
- name: cht_conflict_count
path: '{.conflict.count}'
help: Number of doc conflicts which need to be resolved manually.
valuetype: gauge
- name: cht_connected_users_count
path: '{.connected_users.count}'
help: Number of users that have connected to the api recently. By default the time interval is 7 days. Otherwise it is equal to the connected_user_interval parameter value used when making the /monitoring request.
valuetype: gauge
- <<: *cht_couchdb_doc_total
path: '{.couchdb.medic.doc_count}'
labels:
db: 'medic'
- <<: *cht_couchdb_doc_total
path: '{.couchdb.sentinel.doc_count}'
labels:
db: 'sentinel'
- <<: *cht_couchdb_doc_total
path: '{.couchdb.usersmeta.doc_count}'
labels:
db: 'medic-users-meta'
- <<: *cht_couchdb_doc_total
path: '{.couchdb.users.doc_count}'
labels:
db: '_users'
- <<: *cht_couchdb_doc_del_total
path: '{.couchdb.medic.doc_del_count}'
labels:
db: 'medic'
- <<: *cht_couchdb_doc_del_total
path: '{.couchdb.sentinel.doc_del_count}'
labels:
db: 'sentinel'
- <<: *cht_couchdb_doc_del_total
path: '{.couchdb.usersmeta.doc_del_count}'
labels:
db: 'medic-users-meta'
- <<: *cht_couchdb_doc_del_total
path: '{.couchdb.users.doc_del_count}'
labels:
db: '_users'
- <<: *cht_couchdb_fragmentation
path: '{.couchdb.medic.fragmentation}'
labels:
db: 'medic'
- <<: *cht_couchdb_fragmentation
path: '{.couchdb.sentinel.fragmentation}'
labels:
db: 'sentinel'
- <<: *cht_couchdb_fragmentation
path: '{.couchdb.usersmeta.fragmentation}'
labels:
db: 'medic-users-meta'
- <<: *cht_couchdb_fragmentation
path: '{.couchdb.users.fragmentation}'
labels:
db: '_users'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.medic.sizes.active}'
labels:
db: 'medic'
type: 'active'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.medic.sizes.file}'
labels:
db: 'medic'
type: 'file'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.sentinel.sizes.active}'
labels:
db: 'sentinel'
type: 'active'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.sentinel.sizes.file}'
labels:
db: 'sentinel'
type: 'file'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.usersmeta.sizes.active}'
labels:
db: 'medic-users-meta'
type: 'active'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.usersmeta.sizes.file}'
labels:
db: 'medic-users-meta'
type: 'file'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.users.sizes.active}'
labels:
db: '_users'
type: 'active'
- <<: *cht_couchdb_size_bytes
path: '{.couchdb.users.sizes.file}'
labels:
db: '_users'
type: 'file'
- <<: *cht_couchdb_update_sequence
path: '{.couchdb.medic.update_sequence}'
labels:
db: 'medic'
- <<: *cht_couchdb_update_sequence
path: '{.couchdb.sentinel.update_sequence}'
labels:
db: 'sentinel'
- <<: *cht_couchdb_update_sequence
path: '{.couchdb.usersmeta.update_sequence}'
labels:
db: 'medic-users-meta'
- <<: *cht_couchdb_update_sequence
path: '{.couchdb.users.update_sequence}'
labels:
db: '_users'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic")].sizes.active}'
labels:
db: 'medic'
view_index: 'medic'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic")].sizes.file}'
labels:
db: 'medic'
view_index: 'medic'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-admin")].sizes.active}'
labels:
db: 'medic'
view_index: 'medic-admin'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-admin")].sizes.file}'
labels:
db: 'medic'
view_index: 'medic-admin'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-client")].sizes.active}'
labels:
db: 'medic'
view_index: 'medic-client'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-client")].sizes.file}'
labels:
db: 'medic'
view_index: 'medic-client'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-conflicts")].sizes.active}'
labels:
db: 'medic'
view_index: 'medic-conflicts'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-conflicts")].sizes.file}'
labels:
db: 'medic'
view_index: 'medic-conflicts'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-scripts")].sizes.active}'
labels:
db: 'medic'
view_index: 'medic-scripts'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-scripts")].sizes.file}'
labels:
db: 'medic'
view_index: 'medic-scripts'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-sms")].sizes.active}'
labels:
db: 'medic'
view_index: 'medic-sms'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.medic.view_indexes[?(@.name=="medic-sms")].sizes.file}'
labels:
db: 'medic'
view_index: 'medic-sms'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.sentinel.view_indexes[?(@.name=="sentinel")].sizes.active}'
labels:
db: 'sentinel'
view_index: 'sentinel'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.sentinel.view_indexes[?(@.name=="sentinel")].sizes.file}'
labels:
db: 'sentinel'
view_index: 'sentinel'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.usersmeta.view_indexes[?(@.name=="users-meta")].sizes.active}'
labels:
db: 'medic-users-meta'
view_index: 'users-meta'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.usersmeta.view_indexes[?(@.name=="users-meta")].sizes.file}'
labels:
db: 'medic-users-meta'
view_index: 'users-meta'
type: 'file'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.users.view_indexes[?(@.name=="users")].sizes.active}'
labels:
db: '_users'
view_index: 'users'
type: 'active'
- <<: *cht_couchdb_view_index_size_bytes
path: '{.couchdb.users.view_indexes[?(@.name=="users")].sizes.file}'
labels:
db: '_users'
view_index: 'users'
type: 'file'
- name: cht_date_current_millis
path: '{.date.current}'
help: The current server date in millis since the epoch, useful for ensuring the server time is correct.
valuetype: counter
- name: cht_date_uptime_seconds
path: '{.date.uptime}'
help: How long API has been running.
valuetype: counter
- name: cht_feedback_total
path: '{.feedback.count}'
help: Number of feedback docs created usually indicative of client side errors.
valuetype: counter
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.pending.pending}'
labels:
group: 'pending'
status: 'pending'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.pending.forwarded-to-gateway}'
labels:
group: 'pending'
status: 'forwarded-to-gateway'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.pending.received-by-gateway}'
labels:
group: 'pending'
status: 'received-by-gateway'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.pending.forwarded-by-gateway}'
labels:
group: 'pending'
status: 'forwarded-by-gateway'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.final.sent}'
labels:
group: 'final'
status: 'sent'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.final.delivered}'
labels:
group: 'final'
status: 'delivered'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.final.failed}'
labels:
group: 'final'
status: 'failed'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.muted.denied}'
labels:
group: 'muted'
status: 'denied'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.muted.cleared}'
labels:
group: 'muted'
status: 'cleared'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.muted.muted}'
labels:
group: 'muted'
status: 'muted'
- <<: *cht_messaging_outgoing_last_hundred
path: '{.messaging.outgoing.last_hundred.muted.duplicate}'
labels:
group: 'muted'
status: 'duplicate'
- <<: *cht_messaging_outgoing_total
path: '{.messaging.outgoing.total.due}'
labels:
status: 'due'
- <<: *cht_messaging_outgoing_total
path: '{.messaging.outgoing.total.scheduled}'
labels:
status: 'scheduled'
- <<: *cht_messaging_outgoing_total
path: '{.messaging.outgoing.total.muted}'
labels:
status: 'muted'
- <<: *cht_messaging_outgoing_total
path: '{.messaging.outgoing.total.failed}'
labels:
status: 'failed'
- <<: *cht_messaging_outgoing_total
path: '{.messaging.outgoing.total.delivered}'
labels:
status: 'delivered'
- name: cht_outbound_push_backlog_count
path: '{.outbound_push.backlog}'
help: Number of changes yet to be processed by Outbound Push.
valuetype: gauge
- name: cht_replication_limit_count
path: '{.replication_limit.count}'
help: Number of users that exceeded the replication limit of documents.
valuetype: gauge
- name: cht_sentinel_backlog_count
path: '{.sentinel.backlog}'
help: Number of changes yet to be processed by Sentinel.
valuetype: gauge