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

feat: databend-meta adds more metrics about raft-log #16884

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Nov 20, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

feat: databend-meta adds more metrics about raft-log
  • "raft_log_cache_items" : number of items in raft log cache;
  • "raft_log_cache_used_size" : size of used space in raft log cache;
  • "raft_log_wal_open_chunk_size" : size of open chunk in raft log wal;
  • "raft_log_wal_offset" : global offset of raft log WAL;
  • "raft_log_wal_closed_chunk_count" : number of closed chunks in raft log WAL;
  • "raft_log_wal_closed_chunk_total_size" : total size of closed chunks in raft log WAL;

Example output of these new metrics:

metasrv_server_raft_log_cache_items                 35496
metasrv_server_raft_log_cache_used_size             659024620
metasrv_server_raft_log_wal_open_chunk_size         803
metasrv_server_raft_log_wal_offset                  3536913654
metasrv_server_raft_log_wal_closed_chunk_count      3
metasrv_server_raft_log_wal_closed_chunk_total_size 584045971
metasrv_server_raft_log_size                        584046774

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • New Feature (non-breaking change which adds functionality)

Related Issues


This change is Reviewable

@drmingdrmer drmingdrmer marked this pull request as ready for review November 20, 2024 08:21
@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label Nov 20, 2024
@drmingdrmer drmingdrmer requested a review from everpcpc November 20, 2024 08:21
- "raft_log_cache_items"                 : number of items in raft log cache;
- "raft_log_cache_used_size"             : size of used space in raft log cache;
- "raft_log_wal_open_chunk_size"         : size of open chunk in raft log wal;
- "raft_log_wal_offset"                  : global offset of raft log WAL;
- "raft_log_wal_closed_chunk_count"      : number of closed chunks in raft log WAL;
- "raft_log_wal_closed_chunk_total_size" : total size of closed chunks in raft log WAL;

Example output of these new metrics:

```text
metasrv_server_raft_log_cache_items                 35496
metasrv_server_raft_log_cache_used_size             659024620
metasrv_server_raft_log_wal_open_chunk_size         803
metasrv_server_raft_log_wal_offset                  3536913654
metasrv_server_raft_log_wal_closed_chunk_count      3
metasrv_server_raft_log_wal_closed_chunk_total_size 584045971
metasrv_server_raft_log_size                        584046774
```
@drmingdrmer drmingdrmer merged commit 8498ad9 into databendlabs:main Nov 21, 2024
72 checks passed
@drmingdrmer drmingdrmer deleted the 169-stream-list branch November 21, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants