mirror of
				https://github.com/rfmoz/grafana-dashboards.git
				synced 2025-03-05 20:51:45 -08:00 
			
		
		
		
	| It appears that Grafana unconditionally replaces `${DS_PROMETHEUS}` in the JSON
with the UID of the datasource selected in the dashboard import dialogue.
I couldn’t find any way how to escape that (the usual suspects like `\$`, `\\$`
and `$$` all don’t work).
However, one can simply use another name and Grafana will keep the variable as
is and thus selectable via the templating.
This commit replaces any occurrence of `${DS_PROMETHEUS}` with
`${datasource}` and further changes the templating to also use the variable name
and the label to use capitalisation like the others already do.
Closes: https://github.com/rfmoz/grafana-dashboards/issues/51
Closes: https://github.com/rfmoz/grafana-dashboards/issues/139
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> | ||
|---|---|---|
| .. | ||
| bind9-full.json | ||
| haproxy-2-full.json | ||
| haproxy-full.json | ||
| nfs-full.json | ||
| node-exporter-freebsd.json | ||
| node-exporter-full-old.json | ||
| node-exporter-full.json | ||