linkerd2/grafana/dashboards
Grégoire Bellon-Gervais 7256943ef0
[grafana] update datasource (#11017)
Subject:
Fix for `Failed to upgrade legacy queries Datasource ${DS_PROMETHEUS} was not found`

Problem:
When we try to manually import Grafana dashboards, we have the following error `Failed to upgrade legacy queries Datasource ${DS_PROMETHEUS} was not found` when we open the dashboard once imported.

Solution:
Add this to each dashboard:
```yaml
      {
        "hide": 0,
        "label": "datasource",
        "name": "DS_PROMETHEUS",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "type": "datasource"
      },
```

It also fix dashboards that were not working with [kube-prometheus-stack helm chart](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)


Validation

Fixes [10873](https://github.com/linkerd/linkerd2/issues/10873)

Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Co-authored-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
2023-07-21 14:13:04 -07:00
..
authority.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
cronjob.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
daemonset.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
deployment.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
health.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
job.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
kubernetes.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
multicluster.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
namespace.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
pod.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
prometheus-2-stats.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
prometheus-benchmark.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
replicaset.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
replicationcontroller.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
route.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
service.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
statefulset.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00
top-line.json [grafana] update datasource (#11017) 2023-07-21 14:13:04 -07:00