-
Notifications
You must be signed in to change notification settings - Fork 60
/
stat_definitions.json
2589 lines (2586 loc) · 67.3 KB
/
stat_definitions.json
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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* //// stat_definitions.json
*
* stat_definitions.json contains definitions of the form:
*
* {
* "key": "unique_enum_key",
* "unit": "none",
* "cbstat": "key_used_for_cbstats_{format_arg}",
* "prometheus": {
* "family": "metric_family",
* "labels": {
* "label_key": "label_value"
* }
* }
* },
*
* * "key"
* globally unique key, used when adding stats to a collector:
* collector.addStat(Key::foobar, value);
*
* * "unit"
* name of a cb::stats::unit declaration, e.g., "bytes", "microseconds".
* see statistics/units.h for all values.
* Indicates what the internally tracked value represents.
* This is used to add the appropriate suffix to the Prometheus metric
* family ("..._bytes", "..._seconds") and scale the recorded value to the
* base unit required by Prometheus (nanoseconds -> seconds,
* kilobytes->bytes)
*
* * "cbstat"
* If set to false, this metric will not be exposed over cbstats.
*
* If the key used for cbstats needs to be different than the enum
* e.g., has unacceptable characters, or needs formatting at runtime,
* it may be overriden here.
* For example:
* {
* "key": "vb_num",
* "unit": "count",
* "cbstat": "vb_{state}_num",
* "prometheus": {
* "family": "num_vbuckets"
* }
* },
* Uses a runtime "state" label in the cbstat key.
* The same stat may be added with a different state label:
* collector.withLabel("state", "active").addStat(Key::vb_num, value);
* collector.withLabel("state", "replica").addStat(Key::vb_num, otherValue);
* For Prometheus, this results in multiple time series under the family
* "num_vbuckets", with differing labels.
* CBstats instead needs to format the key "vb_{state}_num" to get back to
* a unique value, "vb_active_num", "vb_replica_num".
*
* * "prometheus"
* If set to false, this metric will not be exposed for prometheus.
* otherwise, object containing "family", "labels" keys, both optional.
* ** "family"
* If absent, defaults to the value of "key".
* A non-unique metric family name. Several metrics can share the same
* metric family name, with differing labels:
* foobar{label="value"}
* foobar{label="value2"}
* ** "labels"
* Fixed labels which distinguish this stat from others in the metric family.
* More labels may be added at runtime, but where a label is always fixed
* ahead of time, it should be specified here.
*
*
* //// cb::stats::Key
*
* generated_stats.h declares an enum containing every "key" from the json.
* namespace cb::stats {
* enum class Key {
* default_evictions,
* default_curr_items,
* ...
*
* This enum is used when adding stats to a collector:
* collector.addStats(Key::default_evictions, value);
*
* The underlying collector impl (cbstat or prometheus) will use the relevant
* information from the definitions in the json file.
*
*
* //// Examples
* * minimal CBStats-only metric
* {
* "key": "some_unique_key",
* "unit": "none", // unit is only informational for cbstats
* "prometheus": false
* },
* the cbstat key will default to the enum key as it has not been overriden.
* * minimal Prometheus-only metric
* {
* "key": "cmd_duration",
* "unit": "microseconds",
* "cbstat": false
* }
* the metric family defaults to the enum key, and no additional hard-coded
* labels are present (though more may be added at runtime, like the "bucket"
* label).
*/
[
/* default_engine stats */
{
"key": "default_evictions",
"unit": "count",
"cbstat": "evictions",
"prometheus": {
"family": "memcache_evictions"
}
},
{
"key": "default_curr_items",
"unit": "count",
"cbstat": "curr_items",
"prometheus": {
"family": "memcache_curr_items"
},
"description": "Number of active items in memory"
},
{
"key": "default_total_items",
"unit": "count",
"cbstat": "total_items",
"prometheus": {
"family": "memcache_total_items"
}
},
{
"key": "default_bytes",
"unit": "bytes",
"cbstat": "bytes",
"prometheus": {
"family": "memcache_mem_size"
},
"description": "Engine's total memory usage"
},
{
"key": "default_reclaimed",
"unit": "count",
"cbstat": "reclaimed",
"prometheus": {
"family": "memcache_reclaimed"
}
},
{
"key": "default_engine_maxbytes",
"unit": "count",
"cbstat": "engine_maxbytes",
"prometheus": {
"family": "memcache_engine_maxbytes"
}
},
/* TODO: applying a "kv_" prefix globally would be consistent but lead to kv_ep_
* for some stats. Providing metric family names without ep_ would avoid this
* "All" stats group (doEngineStats)
*/
{
"key": "ep_num_workers",
"unit": "count",
"description": "Global number of shared worker threads"
},
{
"key": "ep_bucket_priority",
"unit": "none",
"description": "Priority assigned to the bucket"
},
/* TODO: make 0/1 rather than text for Prometheus? */
{
"key": "ep_total_enqueued",
"unit": "count",
"description": "Total number of items queued for persistence"
},
{
"key": "ep_total_deduplicated",
"unit": "count",
"description": "Total number of items de-duplicated when queued to CheckpointManager"
},
{
"key": "ep_expired_access",
"unit": "count",
"description": "Number of times an item was expired on application access."
},
{
"key": "ep_expired_compactor",
"unit": "count",
"description": "Number of times an item was expired by the ep engine compactor"
},
{
"key": "ep_expired_pager",
"unit": "count",
"description": "Number of times an item was expired by ep engine item pager"
},
{
"key": "ep_queue_size",
"unit": "count",
"description": "Number of items queued for storage"
},
{
"key": "ep_diskqueue_items",
"unit": "count",
"description": "Total items in disk queue"
},
{
"key": "ep_commit_num",
"unit": "count",
"description": "Total number of write commits"
},
{
"key": "ep_commit_time",
"unit": "microseconds",
"description": "Number of milliseconds of most recent commit"
},
{
"key": "ep_commit_time_total",
"unit": "microseconds",
"description": "Cumulative milliseconds spent committing"
},
{
"key": "ep_item_begin_failed",
"unit": "count",
"description": "Number of times a transaction failed to start due to storage errors"
},
{
"key": "ep_item_commit_failed",
"unit": "count",
"description": "Number of times a transaction failed to commit due to storage errors"
},
{
"key": "ep_item_flush_expired",
"unit": "count",
"description": "Number of times an item is not flushed due to the expiry of the item"
},
{
"key": "ep_item_flush_failed",
"unit": "count",
"description": "Number of times an item failed to flush due to storage errors"
},
{
"key": "ep_flusher_state",
"unit": "none",
"description": "Current state of the flusher thread"
},
{
"key": "ep_flusher_todo",
"unit": "count",
"description": "Number of items currently being written"
},
{
"key": "ep_total_persisted",
"unit": "count",
"description": "Total number of items persisted"
},
{
"key": "ep_uncommitted_items",
"unit": "count",
"description": "The amount of items that have not been written to disk"
},
{
"key": "ep_vbucket_del",
"unit": "count",
"description": "Number of vbucket deletion events"
},
{
"key": "ep_vbucket_del_fail",
"unit": "count",
"description": "Number of failed vbucket deletion events"
},
{
"key": "ep_flush_duration_total",
"unit": "milliseconds",
"description": "Cumulative milliseconds spent flushing"
},
{
"key": "ep_persist_vbstate_total",
"unit": "count",
"description": "Total VB persist state to disk"
},
{
"key": "mem_used",
"unit": "bytes",
"description": "Engine's total memory usage"
},
{
"key": "mem_used_primary",
"unit": "bytes",
"prometheus": {
"family": "domain_memory_used",
"labels": {
"domain": "primary"
}
}
},
{
"key": "mem_used_secondary",
"unit": "bytes",
"prometheus": {
"family": "domain_memory_used",
"labels": {
"domain": "secondary"
}
}
},
{
"key": "mem_used_estimate",
"unit": "bytes",
"description": "Engine's total estimated memory usage This is a faster stat to read, but lags mem_used as it's only updated when a threshold is crossed see mem_used_merge_threshold"
},
{
"key": "ep_mem_low_wat_percent",
"unit": "percent",
"description": "Low water mark (as a percentage)"
},
{
"key": "ep_mem_high_wat_percent",
"unit": "percent",
"description": "High water mark (as a percentage)"
},
/* TODO: it's not advised to have metric like:
* my_metric{label=a} 1
* my_metric{label=b} 6
* my_metric{label=total} 7
* as a total is inconvenient for aggregation, _but_ we do track
* several stats which are logically totals which might include things _not_
* available under any other metric. Exposing it under a different metric name
* seems best. Note: "..._total" is expected to be reserved for Counters -
* totals over time, not totals of other things.
*/
{
"key": "bytes",
"unit": "bytes",
"prometheus": {
"family": "total_memory_used"
},
"description": "Engine's total memory usage"
},
{
"key": "ep_kv_size",
"unit": "bytes",
"prometheus": {
"family": "memory_used",
"labels": {
"for": "hashtable"
}
},
"description": "Memory used to store item metadata, keys and values, no matter the vbucket's state. If an item's value is ejected, this stat will be decremented by the size of the item's value."
},
{
"key": "ep_blob_num",
"unit": "count",
"description": "The number of blob objects in the cache"
},
{
"key": "ep_blob_overhead",
"unit": "bytes",
"prometheus": {
"family": "memory_overhead",
"labels": {
"for": "blobs"
}
},
"description": "The \"unused\" memory caused by the allocator returning bigger chunks than requested"
},
/* TODO: Assess what labels would actually be _useful_ for querying */
{
"key": "ep_value_size",
"unit": "bytes",
"prometheus": {
"family": "memory_used",
"labels": {
"for": "blobs"
}
},
"description": "Memory used to store values for resident keys"
},
{
"key": "ep_storedval_size",
"unit": "bytes",
"prometheus": {
"family": "memory_used",
"labels": {
"for": "storedvalues"
}
},
"description": "Memory used by storedval objects"
},
{
"key": "ep_storedval_overhead",
"unit": "bytes",
"prometheus": {
"family": "memory_overhead",
"labels": {
"for": "storedvalues"
}
},
"description": "The \"unused\" memory caused by the allocator returning bigger chunks than requested"
},
{
"key": "ep_storedval_num",
"unit": "count",
"description": "The number of storedval objects allocated"
},
{
"key": "ep_overhead",
"unit": "bytes",
"prometheus": {
"family": "total_memory_overhead"
},
"description": "Extra memory used by transient data like persistence queue, replication queues, checkpoints, etc"
},
{
"key": "ep_item_num",
"unit": "count",
"description": "The number of item objects allocated"
},
{
"key": "ep_oom_errors",
"unit": "count",
"description": "Number of times unrecoverable OOMs happened while processing operations"
},
{
"key": "ep_tmp_oom_errors",
"unit": "count",
"description": "Number of times temporary OOMs happened while processing operations"
},
{
"key": "ep_mem_tracker_enabled",
"unit": "none",
"description": "True if memory usage tracker is enabled"
},
{
"key": "ep_bg_fetched",
"unit": "count",
"description": "Number of items fetched from disk"
},
{
"key": "ep_bg_meta_fetched",
"unit": "count",
"description": "Number of meta items fetched from disk"
},
{
"key": "ep_bg_remaining_items",
"unit": "count",
"description": "Number of remaining bg fetch items"
},
{
"key": "ep_bg_remaining_jobs",
"unit": "count",
"description": "Number of remaining bg fetch jobs"
},
{
"key": "ep_num_pager_runs",
"unit": "count",
"description": "Number of times we ran pager loops to seek additional memory"
},
{
"key": "ep_num_expiry_pager_runs",
"unit": "count",
"description": "Number of times we ran expiry pager loops to purge expired items from memory/disk"
},
{
"key": "ep_num_freq_decayer_runs",
"unit": "count",
"description": "Number of times we ran the freq decayer task because a frequency counter has become saturated"
},
{
"key": "ep_items_expelled_from_checkpoints",
"unit": "count",
"description": "Number of items expelled from checkpoints. Expelled refers to items that have been ejected from memory but are still considered to be part of the checkpoint."
},
{
"key": "ep_items_rm_from_checkpoints",
"unit": "count",
"description": "Number of items removed from closed unreferenced checkpoints"
},
{
"key": "ep_num_value_ejects",
"unit": "count",
"description": "Number of times item values got ejected from memory to disk"
},
{
"key": "ep_num_eject_failures",
"unit": "count",
"description": "Number of items that could not be ejected"
},
{
"key": "ep_num_not_my_vbuckets",
"unit": "count",
"description": "Number of times Not My VBucket exception happened during runtime"
},
{
"key": "ep_pending_ops",
"unit": "count",
"description": "Number of ops awaiting pending vbuckets"
},
{
"key": "ep_pending_ops_total",
"unit": "count",
"description": "Total blocked pending ops since reset"
},
/* TODO: are total-over-uptime stats relevant for prometheus
* given the ability to sum over a time period?
*/
{
"key": "ep_pending_ops_max",
"unit": "count",
"description": "Max ops seen awaiting 1 pending vbucket"
},
/* TODO: standardise labelling for "high watermark" style stats */
{
"key": "ep_pending_ops_max_duration",
"unit": "microseconds",
"description": "Max time (\u00b5s) used waiting on pending vbuckets"
},
{
"key": "ep_pending_compactions",
"unit": "count",
"description": "Number of pending vbucket compactions"
},
{
"key": "ep_compaction_failed",
"unit": "count"
},
{
"key": "ep_compaction_aborted",
"unit": "count"
},
{
"key": "ep_rollback_count",
"unit": "count",
"description": "Number of rollbacks on consumer"
},
{
"key": "ep_vbucket_del_max_walltime",
"unit": "microseconds",
"description": "Max wall time (\u00b5s) spent by deleting a vbucket"
},
{
"key": "ep_vbucket_del_avg_walltime",
"unit": "microseconds",
"description": "Avg wall time (\u00b5s) spent by deleting a vbucket"
},
{
"key": "ep_bg_num_samples",
"unit": "count",
"description": "The number of samples included in the average"
},
{
"key": "ep_bg_min_wait",
"unit": "microseconds",
"description": "The shortest time (\u00b5s) in the wait queue"
},
{
"key": "ep_bg_max_wait",
"unit": "microseconds",
"description": "The longest time (\u00b5s) in the wait queue"
},
{
"key": "ep_bg_wait_avg",
"unit": "microseconds",
"description": "The average wait time (\u00b5s) for an item before it's serviced by the dispatcher"
},
/* TODO: derived from two stats. Decide
* whether to expose for prometheus
*/
{
"key": "ep_bg_min_load",
"unit": "microseconds",
"description": "The shortest load time (\u00b5s)"
},
{
"key": "ep_bg_max_load",
"unit": "microseconds",
"description": "The longest load time (\u00b5s)"
},
{
"key": "ep_bg_load_avg",
"unit": "microseconds",
"description": "The average time (\u00b5s) for an item to be loaded from the persistence layer"
},
/* TODO: derived from two stats. Decide
* whether to expose for prometheus
*/
{
"key": "ep_bg_wait",
"unit": "microseconds",
"description": "The total elapse time for the wait queue"
},
{
"key": "ep_bg_load",
"unit": "microseconds",
"description": "The total elapse time for items to be loaded from the persistence layer"
},
{
"key": "ep_degraded_mode",
"unit": "none",
"description": "True if the engine is either warming up or data traffic is disabled"
},
{
"key": "ep_num_access_scanner_runs",
"unit": "count",
"description": "Number of times we ran accesss scanner to snapshot working set"
},
{
"key": "ep_num_access_scanner_skips",
"unit": "count",
"description": "Number of times accesss scanner task decided not to generate access log"
},
{
"key": "ep_access_scanner_last_runtime",
"unit": "seconds",
"description": "Number of seconds that last access scanner task took to complete."
},
/* TODO: relative to server start. Convert to absolute time? */
{
"key": "ep_access_scanner_num_items",
"unit": "count",
"description": "Number of items that last access scanner task swept to access log."
},
{
"key": "ep_access_scanner_task_time",
"unit": "none",
"description": "Time of the next access scanner task (GMT), NOT_SCHEDULED if access scanner has been disabled"
},
/* TODO: this is a string, expose numeric time for Prometheus */
{
"key": "ep_expiry_pager_task_time",
"unit": "none",
"description": "Time of the next expiry pager task (GMT), NOT_SCHEDULED if expiry pager has been disabled"
},
/* TODO: this is a string, expose numeric time for Prometheus */
{
"key": "ep_startup_time",
"unit": "seconds",
"description": "System-generated engine startup time"
},
{
"key": "ep_warmup_thread",
"unit": "none",
"description": "Warmup thread status"
},
{
"key": "ep_warmup_time",
"unit": "microseconds",
"description": "Time (\u00b5s) spent by warming data"
},
{
"key": "ep_warmup_oom",
"unit": "count",
"description": "OOMs encountered during warmup"
},
{
"key": "ep_warmup_dups",
"unit": "count",
"description": "Duplicates encountered during warmup"
},
{
"key": "ep_warmup_state",
"unit": "none",
"description": "The current state of the warmup thread"
},
{
"key": "ep_warmup_key_count",
"unit": "count",
"description": "Number of keys warmed up"
},
{
"key": "ep_warmup_value_count",
"unit": "count",
"description": "Number of values warmed up"
},
{
"key": "ep_warmup_min_item_threshold",
"unit": "count"
},
{
"key": "ep_warmup_keys_time",
"unit": "microseconds",
"description": "Time (\u00b5s) spent by warming keys"
},
{
"key": "ep_warmup_estimated_key_count",
"unit": "none",
"description": "Estimated number of keys in database"
},
{
"key": "ep_warmup_estimate_time",
"unit": "microseconds"
},
{
"key": "ep_warmup_access_log",
"unit": "none",
"description": "Number of keys present in access log"
},
{
"key": "ep_warmup_estimated_value_count",
"unit": "none",
"description": "Estimated number of values in database"
},
{
"key": "ep_num_ops_get_meta",
"unit": "count",
"prometheus": {
"family": "ops",
"labels": {
"op": "get_meta"
}
},
"description": "Number of getMeta operations"
},
{
"key": "ep_num_ops_set_meta",
"unit": "count",
"prometheus": {
"family": "ops",
"labels": {
"op": "set_meta"
}
},
"description": "Number of setWithMeta operations"
},
{
"key": "ep_num_ops_del_meta",
"unit": "count",
"prometheus": {
"family": "ops",
"labels": {
"op": "del_meta"
}
},
"description": "Number of delWithMeta operations"
},
{
"key": "ep_num_ops_set_meta_res_fail",
"unit": "count",
"prometheus": {
"family": "ops_failed",
"labels": {
"op": "set_meta"
}
}
},
{
"key": "ep_num_ops_del_meta_res_fail",
"unit": "count",
"prometheus": {
"family": "ops_failed",
"labels": {
"op": "del_meta"
}
}
},
{
"key": "ep_num_ops_set_ret_meta",
"unit": "count",
"prometheus": {
"family": "ops",
"labels": {
"op": "set_ret_meta"
}
},
"description": "Number of setRetMeta operations"
},
{
"key": "ep_num_ops_del_ret_meta",
"unit": "count",
"prometheus": {
"family": "ops",
"labels": {
"op": "del_ret_meta"
}
},
"description": "Number of delRetMeta operations"
},
{
"key": "ep_num_ops_get_meta_on_set_meta",
"unit": "count",
"prometheus": {
"family": "ops",
"labels": {
"op": "get_meta_for_set_meta"
}
},
"description": "Num of background getMeta operations spawn due to setWithMeta operations"
},
{
"key": "ep_workload_pattern",
"unit": "none",
"description": "Workload pattern (mixed, read_heavy, write_heavy) monitored at runtime"
},
{
"key": "ep_defragmenter_num_visited",
"unit": "count",
"description": "Number of items visited (considered for defragmentation) by the defragmenter task."
},
{
"key": "ep_defragmenter_num_moved",
"unit": "count",
"description": "Number of items moved by the defragmentater task."
},
{
"key": "ep_defragmenter_sv_num_moved",
"unit": "count",
"description": "Number of StoredValues moved by the defragmentater task."
},
{
"key": "ep_item_compressor_num_visited",
"unit": "count",
"description": "Number of items visited (considered for compression) by the item compressor task."
},
{
"key": "ep_item_compressor_num_compressed",
"unit": "count",
"description": "Number of items compressed by the item compressor task."
},
{
"key": "ep_checkpoint_computed_max_size",
"unit": "bytes"
},
{
"key": "ep_cursors_dropped",
"unit": "count",
"description": "Number of cursors dropped by the checkpoint remover"
},
{
"key": "ep_mem_freed_by_checkpoint_removal",
"unit": "bytes",
"description": "Amount of memory freed through ckpt removal"
},
{
"key": "ep_mem_freed_by_checkpoint_item_expel",
"unit": "bytes"
},
{
"key": "ep_num_checkpoints",
"unit": "count"
},
{
"key": "ep_num_checkpoints_pending_destruction",
"unit": "count",
"description": "Number of checkpoints detached from CM and owned by Destroyers"
},
{
"key": "ep_data_write_failed",
"unit": "count",
"description": "Total compaction and commit failures"
},
{
"key": "ep_data_read_failed",
"unit": "count",
"description": "Total number of get failures"
},
{
"key": "ep_io_document_write_bytes",
"unit": "bytes"
},
{
"key": "ep_io_total_read_bytes",
"unit": "bytes",
"description": "Total number of bytes read"
},
{
"key": "ep_io_total_write_bytes",
"unit": "bytes",
"description": "Total number of bytes written"
},
{
"key": "ep_io_compaction_read_bytes",
"unit": "bytes",
"description": "Total number of bytes read during compaction"
},
{
"key": "ep_io_compaction_write_bytes",
"unit": "bytes",
"description": "Total number of bytes written during compaction"
},
{
"key": "ep_io_bg_fetch_read_count",
"unit": "count"
},
{
"key": "ep_bg_fetch_avg_read_amplification",
"unit": "ratio",
"description": "Average read amplification for all background fetch operations - ratio of read()s to documents fetched."
},
/* Magma stats */
{
"key": "ep_magma_sets",
"unit": "count"
},
{
"key": "ep_magma_gets",
"unit": "count"
},
{
"key": "ep_magma_inserts",
"unit": "count"
},
/* Compaction. */
{
"key": "ep_magma_compactions",
"unit": "count"
},
{
"key": "ep_magma_flushes",
"unit": "count"
},
{
"key": "ep_magma_ttl_compactions",
"unit": "count"
},
{
"key": "ep_magma_filecount_compactions",
"unit": "count"
},
{
"key": "ep_magma_writer_compactions",
"unit": "count"
},
/* Read amp. */
{
"key": "ep_magma_readamp",
"unit": "ratio"
},
{
"key": "ep_magma_readamp_get",
"unit": "ratio"
},
{
"key": "ep_magma_read_bytes",
"unit": "bytes"
},
{
"key": "ep_magma_read_bytes_compact",
"unit": "bytes"
},
{
"key": "ep_magma_read_bytes_get",
"unit": "bytes"
},
{
"key": "ep_magma_bytes_outgoing",
"unit": "bytes"
},
/* ReadIOAmp. */
{
"key": "ep_magma_readio",
"unit": "count"
},
{
"key": "ep_magma_readioamp",
"unit": "ratio"
},
{
"key": "ep_magma_bytes_per_read",
"unit": "ratio"
},
/* Write amp. */
{
"key": "ep_magma_writeamp",
"unit": "ratio"
},
{
"key": "ep_magma_bytes_incoming",
"unit": "bytes"
},
{
"key": "ep_magma_write_bytes",
"unit": "bytes"
},
{
"key": "ep_magma_write_bytes_compact",
"unit": "bytes"
},
/* Fragmentation. */
{
"key": "ep_magma_logical_data_size",
"unit": "bytes"
},
{
"key": "ep_magma_logical_disk_size",
"unit": "bytes"
},
{
"key": "ep_magma_fragmentation",
"unit": "ratio"
},
/* Disk usage. */
{
"key": "ep_magma_total_disk_usage",
"unit": "bytes"
},
{
"key": "ep_magma_wal_disk_usage",
"unit": "bytes"