modules/darwin: switch to srvos telegraf
This commit is contained in:
parent
64675a0aa0
commit
83834e3f6e
1 changed files with 5 additions and 39 deletions
|
@ -1,41 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ ../../shared/telegraf.nix ];
|
||||
|
||||
services.telegraf = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
agent.interval = "60s";
|
||||
inputs = {
|
||||
smart.path_smartctl = "${pkgs.smartmontools}/bin/smartctl";
|
||||
system = { };
|
||||
mem = { };
|
||||
swap = { };
|
||||
disk.tagdrop = {
|
||||
fstype = [
|
||||
"tmpfs"
|
||||
"ramfs"
|
||||
"devtmpfs"
|
||||
"devfs"
|
||||
"iso9660"
|
||||
"overlay"
|
||||
"aufs"
|
||||
"squashfs"
|
||||
];
|
||||
device = [
|
||||
"rpc_pipefs"
|
||||
"lxcfs"
|
||||
"nsfs"
|
||||
"borgfs"
|
||||
];
|
||||
};
|
||||
diskio = { };
|
||||
internal = { };
|
||||
};
|
||||
outputs.prometheus_client = {
|
||||
listen = ":9273";
|
||||
metric_version = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
inputs.srvos.darwinModules.mixins-telegraf
|
||||
../../shared/telegraf.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue