Skip to content

feat(meta-service): add metrics for snapshot building#18212

Merged
drmingdrmer merged 1 commit intodatabendlabs:mainfrom
drmingdrmer:321-snapshot-metrics
Jun 21, 2025
Merged

feat(meta-service): add metrics for snapshot building#18212
drmingdrmer merged 1 commit intodatabendlabs:mainfrom
drmingdrmer:321-snapshot-metrics

Conversation

@drmingdrmer
Copy link
Copy Markdown
Member

@drmingdrmer drmingdrmer commented Jun 21, 2025

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

Summary

feat(meta-service): add metrics for snapshot building

Add two snapshot metrics:

  • whether it is building snapshot,
  • and the entries written to snapshot.
# 0 or 1
metasrv_raft_storage_snapshot_building                0

# total number of entries written to snapshot
metasrv_raft_storage_snapshot_written_entries_total   123

Tests

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

Type of change

  • Other

Related Issues


This change is Reviewable

Add two snapshot metrics:
- whether it is building snapshot,
- and the entries written to snapshot.

```
# 0 or 1
metasrv_raft_storage_snapshot_building                0

# total number of entries written to snapshot
metasrv_raft_storage_snapshot_written_entries_total   123
```
@github-actions github-actions Bot added the pr-feature this PR introduces a new feature to the codebase label Jun 21, 2025
@drmingdrmer drmingdrmer requested a review from everpcpc June 21, 2025 15:04
@drmingdrmer drmingdrmer marked this pull request as ready for review June 21, 2025 15:04
@drmingdrmer drmingdrmer merged commit 50f3c98 into databendlabs:main Jun 21, 2025
84 checks passed
@drmingdrmer drmingdrmer deleted the 321-snapshot-metrics branch June 21, 2025 15:48
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