databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.88k stars 752 forks source link

refactor: add new raft-log metrics to "metactl status" response #16899

Closed drmingdrmer closed 3 days ago

drmingdrmer commented 4 days ago

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

Summary

refactor: add new raft-log metrics to "metactl status" response

These new metrics are added to gRPC API GetClusterStatus and corresponding databend-metactl CLI command.

Newly added metrics are:

$ databend-metactl status
# ...
RaftLog:
  - CacheItems: 287
  - CacheUsedSize: 4959439
  - WALTotalSize: 4378076
  - WALOpenChunkSize: 4378058
  - WALOffset: 4378076
  - WALClosedChunkCount: 1
  - WALClosedChunkTotalSize: 18
  - WALClosedChunkSizes:
    - ChunkId(00_000_000_000_000_000_000): 18

Tests

Type of change

Related Issues


This change isโ€‚Reviewable