alloy: Auto enable collectors

This commit is contained in:
SebastianStork 2025-09-22 18:52:46 +02:00
parent 1515ce28e4
commit 5492e51dd3
4 changed files with 12 additions and 20 deletions

View file

@ -79,11 +79,6 @@
alloy = {
enable = true;
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
collect.metrics = {
system = true;
victorialogs = true;
caddy = true;
};
};
caddy.virtualHosts =

View file

@ -56,10 +56,6 @@
alloy = {
enable = true;
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
collect.metrics = {
system = true;
caddy = true;
};
};
caddy.virtualHosts =

View file

@ -77,13 +77,6 @@
alloy = {
enable = true;
domain = "alloy-${config.networking.hostName}.${config.custom.services.tailscale.domain}";
collect = {
metrics = {
system = true;
caddy = true;
};
logs.sshd = true;
};
};
caddy.virtualHosts =

View file

@ -23,11 +23,19 @@ in
};
collect = {
metrics = {
system = lib.mkEnableOption "";
victorialogs = lib.mkEnableOption "";
caddy = lib.mkEnableOption "";
system = lib.mkEnableOption "" // {
default = true;
};
victorialogs = lib.mkEnableOption "" // {
default = config.services.victorialogs.enable;
};
caddy = lib.mkEnableOption "" // {
default = config.services.caddy.enable;
};
};
logs.sshd = lib.mkEnableOption "" // {
default = config.services.openssh.enable;
};
logs.sshd = lib.mkEnableOption "";
};
};