Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking(metrics): Rename Badger metrics. #7507

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

danielmai
Copy link
Contributor

@danielmai danielmai commented Mar 2, 2021

This renames the Badger metrics in the /metrics endpoint to remove the
Badger version in the metric names. This allows the metric name to
remain the same across Badger major versions.

Previous Name New Name
badger_v3_disk_reads_total badger_disk_reads_total
badger_v3_disk_writes_total badger_disk_writes_total
badger_v3_read_bytes badger_read_bytes
badger_v3_written_bytes badger_written_bytes
badger_v3_lsm_bloom_hits_total badger_lsm_bloom_hits_total
badger_v3_gets_total badger_gets_total
badger_v3_puts_total badger_puts_total
badger_v3_memtable_gets_total badger_memtable_gets_total
badger_v3_lsm_size_bytes badger_lsm_size_bytes
badger_v3_vlog_size_bytes badger_vlog_size_bytes

This change is Reviewable

This renames the Badger metrics in the /metrics endpoint to remove the
Badger version in the metric names. This allows the metric name to
remain the same across Badger major versions.

| Previous Name                   | New Name                     |
| ------------------------------- | ---------------------------- |
| badger_v3_disk_reads_total      | badger_disk_reads_total      |
| badger_v3_disk_writes_total     | badger_disk_writes_total     |
| badger_v3_read_bytes            | badger_read_bytes            |
| badger_v3_written_bytes         | badger_written_bytes         |
| badger_v3_lsm_bloom_hits_total  | badger_lsm_bloom_hits_total  |
| badger_v3_gets_total            | badger_gets_total            |
| badger_v3_puts_total            | badger_puts_total            |
| badger_v3_memtable_gets_total   | badger_memtable_gets_toal    |
| badger_v3_lsm_size_bytes        | badger_lsm_size_bytes        |
| badger_v3_vlog_size_bytes       | badger_vlog_size_bytes       |
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @vvbalaji-dgraph)

@danielmai danielmai merged commit bfeec2f into master Mar 3, 2021
@danielmai danielmai deleted the danielmai/rename-badger-metrics branch March 3, 2021 21:28
aman-bansal pushed a commit that referenced this pull request Mar 9, 2021
This renames the Badger metrics in the /metrics endpoint to remove the
Badger version in the metric names. This allows the metric name to
remain the same across Badger major versions.

| Previous Name                   | New Name                     |
| ------------------------------- | ---------------------------- |
| badger_v3_disk_reads_total      | badger_disk_reads_total      |
| badger_v3_disk_writes_total     | badger_disk_writes_total     |
| badger_v3_read_bytes            | badger_read_bytes            |
| badger_v3_written_bytes         | badger_written_bytes         |
| badger_v3_lsm_bloom_hits_total  | badger_lsm_bloom_hits_total  |
| badger_v3_gets_total            | badger_gets_total            |
| badger_v3_puts_total            | badger_puts_total            |
| badger_v3_memtable_gets_total   | badger_memtable_gets_total   |
| badger_v3_lsm_size_bytes        | badger_lsm_size_bytes        |
| badger_v3_vlog_size_bytes       | badger_vlog_size_bytes       |
danielmai added a commit to dgraph-io/dgraph-docs that referenced this pull request Jun 4, 2021
This PR reflects the update to Dgraph metrics made in dgraph-io/dgraph#7507
MichelDiz pushed a commit to dgraph-io/dgraph-docs that referenced this pull request Dec 15, 2022
This PR reflects the update to Dgraph metrics made in dgraph-io/dgraph#7507
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants