pingcap / tidb-lightning

This repository has been moved to https://github.com/pingcap/br
Apache License 2.0
143 stars 66 forks source link

metrics: use tidb_cluster label get variable values #559

Closed zjj2wry closed 3 years ago

zjj2wry commented 3 years ago

Signed-off-by: zhengjiajin zhengjiajin@pingcap.com

What problem does this PR solve?

The latest version of tidb-operator will use the instance name as the cluster label. The previous expression uses the cluster label got the value of the tidb_cluster variable. It will cause Grafana can not to display the data.

What is changed and how it works?

Check List

Tests

Side effects

Related changes

zjj2wry commented 3 years ago

/assign @kennytm @glorv

kennytm commented 3 years ago

Lgtm

glorv commented 3 years ago

LGTM