From 382896ca7eff9e3b78ba833c662c2e9c001f7f12 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 19 Jun 2023 00:49:38 +0200 Subject: [PATCH] service/prometheus: add grafana link to alert --- modules/services/prometheus/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/prometheus/default.nix b/modules/services/prometheus/default.nix index 809442e..aca8f36 100644 --- a/modules/services/prometheus/default.nix +++ b/modules/services/prometheus/default.nix @@ -100,7 +100,10 @@ in expr = opts.condition; for = opts.time; labels = opts.labels; - annotations.description = opts.description; + annotations = { + description = opts.description; + grafana = lib.optionalString config.services.grafana.enable "https://visualization.${domain}"; + }; }) (cfg.rules); }