-
Notifications
You must be signed in to change notification settings - Fork 6.2k
metrics: TiDB Summary dashboard shows no data due to typo in tidb_cluster variable query #65589
Copy link
Copy link
Closed
Labels
affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.component/metricscontributionThis PR is from a community contributor.This PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.Indicates that the PR was contributed by an external member and is a first-time contributor.severity/minortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Metadata
Metadata
Assignees
Labels
affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.component/metricscontributionThis PR is from a community contributor.This PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.Indicates that the PR was contributed by an external member and is a first-time contributor.severity/minortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Bug Report
Description
The TiDB Summary Grafana dashboard shows no data for all panels because the
tidb_clustertemplate variable query references a non-existent variable$kuberentes(misspelled) instead of the correct$k8s_cluster.Affected Files
pkg/metrics/grafana/tidb_summary.jsonnet(line 62)pkg/metrics/grafana/tidb_summary.json(line 1789)Root Cause
The
tidb_clustervariable is a hidden variable (hide: 2) that depends onk8s_cluster. The typo$kuberentesshould be$k8s_cluster. Since$kuberentesdoes not exist, the query returns empty results, cascading to all panels.This bug was introduced in commit cc3c905 / PR #32546.
Expected Behavior
Query should use
$k8s_clusterand return valid tidb_cluster values.Actual Behavior
All panels show "No data" because
tidb_clustervariable is empty.