mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
alloy: Auto enable collectors
This commit is contained in:
parent
1515ce28e4
commit
5492e51dd3
4 changed files with 12 additions and 20 deletions
|
|
@ -79,11 +79,6 @@
|
||||||
alloy = {
|
alloy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
|
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
|
||||||
collect.metrics = {
|
|
||||||
system = true;
|
|
||||||
victorialogs = true;
|
|
||||||
caddy = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts =
|
caddy.virtualHosts =
|
||||||
|
|
|
||||||
|
|
@ -56,10 +56,6 @@
|
||||||
alloy = {
|
alloy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
|
domain = "alloy-${config.networking.hostName}.${tailscaleDomain}";
|
||||||
collect.metrics = {
|
|
||||||
system = true;
|
|
||||||
caddy = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts =
|
caddy.virtualHosts =
|
||||||
|
|
|
||||||
|
|
@ -77,13 +77,6 @@
|
||||||
alloy = {
|
alloy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "alloy-${config.networking.hostName}.${config.custom.services.tailscale.domain}";
|
domain = "alloy-${config.networking.hostName}.${config.custom.services.tailscale.domain}";
|
||||||
collect = {
|
|
||||||
metrics = {
|
|
||||||
system = true;
|
|
||||||
caddy = true;
|
|
||||||
};
|
|
||||||
logs.sshd = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts =
|
caddy.virtualHosts =
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,19 @@ in
|
||||||
};
|
};
|
||||||
collect = {
|
collect = {
|
||||||
metrics = {
|
metrics = {
|
||||||
system = lib.mkEnableOption "";
|
system = lib.mkEnableOption "" // {
|
||||||
victorialogs = lib.mkEnableOption "";
|
default = true;
|
||||||
caddy = lib.mkEnableOption "";
|
};
|
||||||
|
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 "";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue