service/prometheus: add grafana link to alert

This commit is contained in:
Felix Buehler 2023-06-19 00:49:38 +02:00
parent 189da51f7e
commit 382896ca7e

View file

@ -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);
}