forked from mirrors_public/oddlama_nix-config
feat: make modules/distributed-config.nix extensible; don't run telegraf on containers because of missing memlock
This commit is contained in:
parent
2120aefef5
commit
3036c53d87
3 changed files with 61 additions and 25 deletions
|
@ -58,6 +58,13 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf (!minimal && cfg.enable) {
|
||||
assertions = [
|
||||
{
|
||||
assertion = !config.boot.isContainer;
|
||||
message = "Containers don't support telegraf because memlock is not enabled.";
|
||||
}
|
||||
];
|
||||
|
||||
nodes.${cfg.influxdb2.node} = {
|
||||
# Mirror the original secret on the influx host
|
||||
age.secrets."telegraf-influxdb-token-${config.node.name}" = {
|
||||
|
@ -135,7 +142,9 @@ in {
|
|||
kernel_vmstat = {};
|
||||
linux_sysctl_fs = {};
|
||||
mem = {};
|
||||
net = {};
|
||||
net = {
|
||||
ignore_protocol_stats = true;
|
||||
};
|
||||
netstat = {};
|
||||
nstat = {};
|
||||
processes = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue