From d385f02c8960175a727dbe03a60e2257876d941c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 17 Feb 2026 00:44:35 +0100 Subject: [PATCH] grafana: fix datasource provisioning crash from renamed Prometheus datasource Co-Authored-By: Claude Opus 4.6 --- services/grafana/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/grafana/default.nix b/services/grafana/default.nix index a0dc7b4..0f801a4 100644 --- a/services/grafana/default.nix +++ b/services/grafana/default.nix @@ -37,6 +37,10 @@ # Declarative datasources provision.datasources.settings = { apiVersion = 1; + # Remove old "Prometheus" datasource that was renamed to "Prometheus (monitoring01)" + deleteDatasources = [ + { name = "Prometheus"; orgId = 1; } + ]; datasources = [ { name = "VictoriaMetrics";