nixos-config/nixos/machines/cherry/telemetry/telegraf.nix

28 lines
608 B
Nix
Raw Normal View History

2024-05-14 22:36:08 +02:00
{ config, pkgs, ... }:
{
2024-05-15 00:25:32 +02:00
2024-05-14 22:36:08 +02:00
systemd.services.telegraf.path = [ pkgs.inetutils ];
services.telegraf = {
enable = true;
extraConfig = {
global_tags = {
service = "telegraf";
server = config.networking.hostName;
};
# https://github.com/influxdata/telegraf/tree/master/plugins/inputs < all them plugins
inputs = {
cpu = { };
diskio = { };
processes = { };
system = { };
systemd_units = { };
ping = [{ urls = [ "10.100.0.1" ]; }]; # actually important to make pepe visible over wireguard
};
};
};
}