alloy: Enable endpoints conditionally based on requirements

This commit is contained in:
SebastianStork 2025-09-21 18:36:23 +02:00
parent 9bc7a2e737
commit 3f85a77fc9
4 changed files with 75 additions and 61 deletions

View file

@ -79,9 +79,9 @@
alloy = {
enable = true;
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
collect = {
hostMetrics = true;
victorialogsMetrics = true;
collect.metrics = {
system = true;
victorialogs = true;
};
};

View file

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

View file

@ -78,8 +78,8 @@
enable = true;
domain = "alloy-${config.networking.hostName}.${config.custom.services.tailscale.domain}";
collect = {
hostMetrics = true;
sshdLogs = true;
metrics.system = true;
logs.sshd = true;
};
};