mirror of https://github.com/linkerd/linkerd2.git
				
				
				
			
				
					
						
							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>
						
					
				
			 | 
			||
|---|---|---|
| .. | ||
| authority.json | ||
| cronjob.json | ||
| daemonset.json | ||
| deployment.json | ||
| health.json | ||
| job.json | ||
| kubernetes.json | ||
| multicluster.json | ||
| namespace.json | ||
| pod.json | ||
| prometheus-2-stats.json | ||
| prometheus-benchmark.json | ||
| replicaset.json | ||
| replicationcontroller.json | ||
| route.json | ||
| service.json | ||
| statefulset.json | ||
| top-line.json | ||