Skip to content

migration: add namespace tag to catchup_ready_shard_count metric#10834

Open
tsurdilo wants to merge 1 commit into
mainfrom
add-namespace-tag-catchup-ready-shard-count
Open

migration: add namespace tag to catchup_ready_shard_count metric#10834
tsurdilo wants to merge 1 commit into
mainfrom
add-namespace-tag-catchup-ready-shard-count

Conversation

@tsurdilo

@tsurdilo tsurdilo commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #10833

What changed?

Add metrics.NamespaceTag to the catchup_ready_shard_count gauge emit in checkReplicationOnce.

Why?

handover_ready_shard_count already carries a namespace tag (same file, checkHandoverOnce). catchup_ready_shard_count was missing it, making it impossible to filter by namespace in dashboards when monitoring multiple global namespaces. The Namespace field already exists on WaitReplicationRequest and is populated by the caller.

How did you test it?

  • [ x] built
  • [x ] run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

none to my knowledge

handover_ready_shard_count already emits a namespace tag; catchup_ready_shard_count
was missing it, making it impossible to filter by namespace in dashboards when
monitoring multiple global namespaces. The Namespace field is already present on
WaitReplicationRequest and populated by the caller.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tsurdilo tsurdilo requested a review from a team as a code owner June 24, 2026 22:32
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.

catchup_ready_shard_count metric missing namespace tag

1 participant