infra/modules/darwin/common/telegraf.nix
2024-05-09 22:31:50 +00:00

29 lines
668 B
Nix

{ pkgs, ... }:
{
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;
};
};
};
}