Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Badger expvar metrics to Prometheus metrics. (#5094)
Fixes #4772 This adds the following badger metrics into /debug/prometheus_metrics: badger_v2_disk_reads_total badger_v2_disk_writes_total badger_v2_gets_total badger_v2_lsm_bloom_hits_total (per level) badger_v2_lsm_level_gets_total (per level) badger_v2_memtable_gets_total badger_v2_puts_total badger_v2_read_bytes badger_v2_written_bytes This is added via the Prometheus expvar collector. Update metrics_test.go for the seven initial Badger versions (excluding the LSM metrics). This adds to the exposed Prometheus metrics. These metrics were already accessible via /debug/vars. The LSM metrics don't show up immediately. They show up after there are hits/gets to the LSM tree. Changes * Add Badger metrics to Prometheus * Update metrics test to check for badger metrics. Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
- Loading branch information
Showing
2 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters