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-11-18 12:51:14 +01:00
|
|
|
cpu = {
|
|
|
|
percpu = true;
|
|
|
|
totalcpu = true;
|
|
|
|
};
|
|
|
|
disk = { };
|
2023-03-12 17:50:01 +01:00
|
|
|
diskio = { };
|
2023-11-18 12:51:14 +01:00
|
|
|
kernel = { };
|
|
|
|
mem = { };
|
2023-02-24 03:51:12 +01:00
|
|
|
processes = { };
|
2023-11-18 12:51:14 +01:00
|
|
|
netstat = { };
|
|
|
|
net = { };
|
|
|
|
system = { };
|
2023-02-24 03:51:12 +01:00
|
|
|
systemd_units = { };
|
|
|
|
nginx.urls = [ "http://localhost/nginx_status" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|