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
|
in
|
||||||
{
|
{
|
||||||
config = {
|
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 {
|
services.prometheus.exporters.node = mkIf cfg.node.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
enabledCollectors = [
|
enabledCollectors = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue