From 50456a906e85b6afd5f50bbab392dd00cea931a2 Mon Sep 17 00:00:00 2001 From: soundgoof Date: Tue, 24 Mar 2026 17:58:24 +0100 Subject: [PATCH] Add uid and allow editing for Prometheus datasources --- modules/grafana/templates/prometheus-datasource.yaml.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/grafana/templates/prometheus-datasource.yaml.erb b/modules/grafana/templates/prometheus-datasource.yaml.erb index 9dadf338..3f2596e5 100644 --- a/modules/grafana/templates/prometheus-datasource.yaml.erb +++ b/modules/grafana/templates/prometheus-datasource.yaml.erb @@ -4,9 +4,10 @@ apiVersion: 1 datasources: <% @prometheus_servers.each do |server, domain| -%> - name: prometheus_<%= domain %> + uid: prometheus_<%= domain %> type: prometheus url: http://<%= server %>:9090 access: proxy isDefault: false - editable: false + editable: true <% end -%>