pingcap / pingcap/tiup

grafana alter:Execution Error: Could not find datasource Data source not found

Open
#307 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status/discuss
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

cluster.yaml

[tidb@node5169 gangshen]$ tiup cluster display sg-latest
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v0.6.2/cluster display sg-latest
TiDB Cluster: sg-latest
TiDB Version: v4.0.0-rc.2
ID                  Role          Host          Ports        OS/Arch       Status     Data Dir                                            Deploy Dir
--                  ----          ----          -----        -------       ------     --------                                            ----------
172.16.5.90:19093   alertmanager  172.16.5.90   19093/19094  linux/x86_64  Up         /home/tidb/gangshen/install/data/alertmanager-9093  /home/tidb/gangshen/install/deploy/alertmanager-9093
172.16.5.189:13000  grafana       172.16.5.189  13000        linux/x86_64  Up         -                                                   /home/tidb/gangshen/install/deploy/grafana-13000
172.16.4.235:12379  pd            172.16.4.235  12379/12380  linux/x86_64  Healthy|L  /home/tidb/gangshen/install/data/pd-12379           /home/tidb/gangshen/install/deploy/pd-12379
172.16.4.237:12379  pd            172.16.4.237  12379/12380  linux/x86_64  Healthy    /home/tidb/gangshen/install/data/pd-12379           /home/tidb/gangshen/install/deploy/pd-12379
172.16.5.189:12379  pd            172.16.5.189  12379/12380  linux/x86_64  Healthy    /home/tidb/gangshen/install/data/pd-12379           /home/tidb/gangshen/install/deploy/pd-12379
172.16.5.189:19090  prometheus    172.16.5.189  19090        linux/x86_64  Up         /home/tidb/gangshen/install/data/prometheus-19090   /home/tidb/gangshen/install/deploy/prometheus-19090
172.16.5.189:14000  tidb          172.16.5.189  14000/20080  linux/x86_64  Up         -                                                   /home/tidb/gangshen/install/deploy/tidb-14000
172.16.4.107:30160  tikv          172.16.4.107  30160/30180  linux/x86_64  Up         /home/tidb/gangshen/install/data/tikv-30160         /home/tidb/gangshen/install/deploy/tikv-30160
172.16.5.171:30160  tikv          172.16.5.171  30160/30180  linux/x86_64  Up         /home/tidb/gangshen/install/data/tikv-30160         /home/tidb/gangshen/install/deploy/tikv-30160
172.16.5.172:30160  tikv          172.16.5.172  30160/30180  linux/x86_64  Up         /home/tidb/gangshen/install/data/tikv-30160         /home/tidb/gangshen/install/deploy/tikv-30160

I deployed the cluster ,then I restarted the cluster.
The grafana alters show alters like this.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cluster.yaml deployment context and the tiup cluster display sg-latest output, then reproduce the cluster restart and inspect the Grafana datasource used by the alerts. The issue is complete when the Grafana alerts no longer report “Data source not found” after a restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
grafana
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.