Skip to content

Add metrics for shard distribution, doc counts, and replica lag - #62

Merged
TejasNaikk merged 7 commits into
mainfrom
feature/shard-distribution-metrics
Jan 30, 2026
Merged

TejasNaikk merged 7 commits into
mainfrom
feature/shard-distribution-metrics

Conversation

@TejasNaikk

Copy link
Copy Markdown
Owner

Adds controller metrics for cluster visualization:

  • Shard metrics: replica count, allocation status, pending allocations
  • Doc count metrics: primary/replica doc counts, replica lag
  • Node metrics: shards per node (by index and total)
  • TTL-based cleanup: zeroes stale gauges after 5min to handle deletions

Enables Grafana dashboards for bin-packing validation and replication health monitoring.

GeorgeZhai
GeorgeZhai previously approved these changes Jan 30, 2026

@GeorgeZhai GeorgeZhai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@TejasNaikk
TejasNaikk merged commit 84ab53a into main Jan 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants