feat(meta-service): Add comprehensive snapshot database metrics - #18422
Merged
Conversation
drmingdrmer
force-pushed
the
361-snapshot-metrics
branch
from
July 25, 2025 06:19
3d70472 to
bc964fc
Compare
drmingdrmer
marked this pull request as ready for review
July 25, 2025 06:19
everpcpc
approved these changes
Jul 25, 2025
Add detailed snapshot database metrics to monitor storage performance and statistics: - Block count, data size, index size metrics - Average block size and keys per block calculations - Block read statistics (total, from cache, from disk) - Upgrade rotbl dependency to 0.2.7 for enhanced access statistics These metrics provide visibility into snapshot storage efficiency and cache performance. All metrics are `gauge` type: ```config # number of keys in the last snapshot. metasrv_server_snapshot_key_count 0 # number of primary keys in the last snapshot. metasrv_server_snapshot_primary_index_count 0 # number of expire index keys in the last snapshot. metasrv_server_snapshot_expire_index_count 0 # number of blocks in the last snapshot. metasrv_server_snapshot_block_count 0 # size of data section in the last snapshot. metasrv_server_snapshot_data_size 0 # size of index section in the last snapshot. metasrv_server_snapshot_index_size 0 # average size of a block in the last snapshot. metasrv_server_snapshot_avg_block_size 0 # average number of keys per block in the last snapshot. metasrv_server_snapshot_avg_keys_per_block 0 # total number of read block from cache or from disk. metasrv_server_snapshot_read_block 0 # total number of read block from cache. metasrv_server_snapshot_read_block_from_cache 0 # total number of read block from disk. metasrv_server_snapshot_read_block_from_disk 0 ```
drmingdrmer
force-pushed
the
361-snapshot-metrics
branch
from
July 25, 2025 08:31
bc964fc to
b295464
Compare
TCeason
pushed a commit
to TCeason/datafuse
that referenced
this pull request
Jul 25, 2025
…bendlabs#18422) Add detailed snapshot database metrics to monitor storage performance and statistics: - Block count, data size, index size metrics - Average block size and keys per block calculations - Block read statistics (total, from cache, from disk) - Upgrade rotbl dependency to 0.2.7 for enhanced access statistics These metrics provide visibility into snapshot storage efficiency and cache performance. All metrics are `gauge` type: ```config metasrv_server_snapshot_key_count 0 metasrv_server_snapshot_primary_index_count 0 metasrv_server_snapshot_expire_index_count 0 metasrv_server_snapshot_block_count 0 metasrv_server_snapshot_data_size 0 metasrv_server_snapshot_index_size 0 metasrv_server_snapshot_avg_block_size 0 metasrv_server_snapshot_avg_keys_per_block 0 metasrv_server_snapshot_read_block 0 metasrv_server_snapshot_read_block_from_cache 0 metasrv_server_snapshot_read_block_from_disk 0 ```
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
feat(meta-service): Add comprehensive snapshot database metrics
Add detailed snapshot database metrics to monitor storage performance and statistics:
These metrics provide visibility into snapshot storage efficiency and cache performance.
All metrics are
gaugetype:Tests
Type of change
Related Issues
This change is