Skip to content

Conversation

LiebingYu
Copy link
Contributor

Purpose

Linked issue: close #1652

Brief change log

Tests

API and Format

Documentation

@LiebingYu LiebingYu changed the title [server] Add cluster_id tag for client metric group [metric] Add cluster_id tag for client metric group Sep 28, 2025
new ClientMetricGroup(
metricRegistry,
ServerMetricUtils.validateAndGetClusterId(conf),
SERVER_NAME + "-" + serverId);
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems more like server_id rather than cluster_id? Different server in same cluster will collect different viriable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems more like server_id rather than cluster_id? Different server in same cluster will collect different viriable.

server_id has already been added. Here I want to add cluster_id for client metric. The cluster_id is necessary when troubleshooting issues, for example, when examining metrics related to requests sent by the ReplicaFetcherThread. Currently, since the client metrics do not have a cluster_id label, we are unable to distinguish metrics from different clusters.

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.

Add cluster_id tag for TabletServer client metrics
2 participants