Skip to content

Add 'store' label to metric pd_cluster_status. #9855

@SerjKol80

Description

@SerjKol80

Enhancement Task

Currently gauge metric pd_cluster_status is aggregated across all stores. This is pretty inconvenient, because if you have long running deployment across TiKV component this metric indicate problematic store for a long period of time and it will not be possible to distinguish different tikv stores contributed to this metric.

What is suggested.
Instead of emitting counts across all stores here, we will emit the same gauge metrics with additional label 'store' with values either 0 or 1 in observe() method. This will allow to get more detailed view from the metric. And aggregation across all values of 'store' label will let you to get the same metrics as today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.contributionThis PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions