27 lines
608 B
Nix
27 lines
608 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
|
|
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
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|