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

34 lines
743 B
Nix
Raw Normal View History

2023-12-09 17:15:50 +01:00
{
services.telegraf = {
enable = true;
extraConfig = {
2024-05-14 17:06:38 +02:00
outputs = {
prometheus_client = {
listen = ":9273";
metric_version = 2;
};
influxdb_v2 = {
urls = [ "http://127.0.0.1:8088" ];
};
2023-12-09 17:15:50 +01:00
};
# https://github.com/influxdata/telegraf/tree/master/plugins/inputs < all them plugins
inputs = {
cpu = {
percpu = true;
totalcpu = true;
};
disk = { };
diskio = { };
kernel = { };
mem = { };
processes = { };
netstat = { };
net = { };
system = { };
systemd_units = { };
nginx.urls = [ "http://localhost/nginx_status" ];
};
};
};
}