nixos-config/nixos/machines/robi/telegraf.nix

20 lines
448 B
Nix
Raw Normal View History

2023-02-24 03:51:12 +01:00
{
services.telegraf = {
enable = true;
extraConfig = {
outputs.prometheus_client = {
listen = ":9273";
metric_version = 2;
};
# https://github.com/influxdata/telegraf/tree/master/plugins/inputs < all them plugins
inputs = {
2023-03-12 10:01:18 +01:00
cpu = {};
diskio = {};
2023-02-24 03:51:12 +01:00
processes = { };
systemd_units = { };
nginx.urls = [ "http://localhost/nginx_status" ];
};
};
};
}