mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11: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
|
|
@ -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 "";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue