Skip to content

metrics: TiDB Summary dashboard shows no data due to typo in tidb_cluster variable query #65589

@boltandrke

Description

@boltandrke

Bug Report

Description

The TiDB Summary Grafana dashboard shows no data for all panels because the tidb_cluster template 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_cluster variable is a hidden variable (hide: 2) that depends on k8s_cluster. The typo $kuberentes should be $k8s_cluster. Since $kuberentes does 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_cluster and return valid tidb_cluster values.

Actual Behavior

All panels show "No data" because tidb_cluster variable is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.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.component/metricscontributionThis PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.severity/minortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions