infra/modules/darwin/common/telegraf.nix

42 lines
826 B
Nix
Raw Normal View History

{ pkgs, ... }:
2023-06-08 08:17:52 +10:00
{
2024-07-24 19:05:26 +10:00
imports = [ ../../shared/telegraf.nix ];
2024-05-04 18:51:58 +10:00
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 = {
2024-07-24 19:05:26 +10:00
fstype = [
"tmpfs"
"ramfs"
"devtmpfs"
"devfs"
"iso9660"
"overlay"
"aufs"
"squashfs"
];
device = [
"rpc_pipefs"
"lxcfs"
"nsfs"
"borgfs"
];
2023-06-08 08:17:52 +10:00
};
diskio = { };
internal = { };
2023-06-08 08:17:52 +10:00
};
outputs.prometheus_client = {
listen = ":9273";
metric_version = 2;
};
};
};
}