grafana-dashboards/prometheus
Christoph Anton Mitterer de0ae6bf5c Fix datasource selection
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>
2023-11-28 03:20:01 +01:00
..
bind9-full.json Use codespell to fix typos 2023-02-10 18:17:14 +01:00
haproxy-2-full.json provisioning_fix 2023-10-20 11:23:53 +03:00
haproxy-full.json Set correct gnetId values 2023-01-17 15:34:24 +03:00
nfs-full.json Set intervalFactor to 1 2021-12-17 08:23:38 +01:00
node-exporter-freebsd.json Update quick cpu / mem / disk panel 2023-09-01 14:01:24 +02:00
node-exporter-full-old.json Set intervalFactor to 1 2021-12-17 08:23:38 +01:00
node-exporter-full.json Fix datasource selection 2023-11-28 03:20:01 +01:00