modules/prometheus: start exporters after tailscaled
This commit is contained in:
parent
ec63c8b6cc
commit
9e3af9a535
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,11 @@ let
|
|||
in
|
||||
{
|
||||
config = {
|
||||
systemd.services.tailscaled.after =
|
||||
(lib.optional cfg.node.enable "prometheus-node-exporters.service")
|
||||
++ (lib.optional cfg.blackbox.enable "prometheus-blackbox-exporters.service")
|
||||
++ (lib.optional config.services.caddy.enable "caddy.service");
|
||||
|
||||
services.prometheus.exporters.node = mkIf cfg.node.enable {
|
||||
enable = true;
|
||||
enabledCollectors = [
|
||||
|
|
Loading…
Add table
Reference in a new issue