infra/modules/darwin/common/telegraf.nix

30 lines
668 B
Nix
Raw Normal View History

{ pkgs, ... }:
2023-06-08 08:17:52 +10:00
{
2024-05-04 18:51:58 +10:00
imports = [
../../shared/telegraf.nix
];
2023-06-08 08:17:52 +10:00
services.telegraf = {
enable = true;
extraConfig = {
agent.interval = "60s";
inputs = {
smart.path_smartctl = "${pkgs.smartmontools}/bin/smartctl";
2023-06-08 08:17:52 +10:00
system = { };
mem = { };
2023-07-19 15:29:02 +10:00
swap = { };
2023-06-08 08:17:52 +10:00
disk.tagdrop = {
fstype = [ "tmpfs" "ramfs" "devtmpfs" "devfs" "iso9660" "overlay" "aufs" "squashfs" ];
device = [ "rpc_pipefs" "lxcfs" "nsfs" "borgfs" ];
};
diskio = { };
internal = { };
2023-06-08 08:17:52 +10:00
};
outputs.prometheus_client = {
listen = ":9273";
metric_version = 2;
};
};
};
}