tikv / tikv/pd

the origin metrics of `isolation level ` is not zero if `isolation level` is changed.

Open
#4,685 3 comments 0 reactions 0 assignees View on GitHub
severity/moderate type/bug
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Bug Report
The origin `isolation level` metircs can not reset zero if `isolation level` is changed.
The sum of label should equal to the count of the regions in cluster.
![middle_img_v2_da068dfa-db5c-4aad-85bd-999266c9eccg](https://user-images.githubusercontent.com/23159587/156101678-0508b2ba-535a-4a4d-a5ad-0b69d5baf3ca.png)

the promQL is: `pd_regions_label_level{}`
### What did you do?
scale out from single center to three centers, so the new `isolation level` is "zone".

### What did you expect to see?
the host's `isolation level` shoule be zero and the count of the label should equal to the count of the regions in cluster.
### What did you see instead?
the host's `isolation level` is not zero.
### What version of PD are you using (`pd-server -V`)?
v4.0.12

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.