mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
service/prometheus: add grafana link to alert
This commit is contained in:
parent
189da51f7e
commit
382896ca7e
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ in
|
||||||
expr = opts.condition;
|
expr = opts.condition;
|
||||||
for = opts.time;
|
for = opts.time;
|
||||||
labels = opts.labels;
|
labels = opts.labels;
|
||||||
annotations.description = opts.description;
|
annotations = {
|
||||||
|
description = opts.description;
|
||||||
|
grafana = lib.optionalString config.services.grafana.enable "https://visualization.${domain}";
|
||||||
|
};
|
||||||
})
|
})
|
||||||
(cfg.rules);
|
(cfg.rules);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue