2017-01-30 21:56:43 +00:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
with import <stockholm/lib>;
|
|
|
|
{
|
2017-02-05 11:15:17 +00:00
|
|
|
services.telegraf = {
|
2017-01-30 21:56:43 +00:00
|
|
|
enable = true;
|
2017-02-02 23:24:21 +00:00
|
|
|
|
2017-02-05 11:15:17 +00:00
|
|
|
extraConfig = {
|
|
|
|
interval = "1s";
|
|
|
|
outputs = {
|
|
|
|
influxdb = {
|
|
|
|
urls = ["http://prism:8086"];
|
|
|
|
database = "telegraf_db";
|
|
|
|
user_agent = "telegraf";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
inputs = {
|
|
|
|
cpu = {
|
|
|
|
percpu = false;
|
|
|
|
totalcpu = true;
|
|
|
|
};
|
|
|
|
mem = {};
|
|
|
|
net = {};
|
|
|
|
};
|
|
|
|
};
|
2017-02-02 23:24:39 +00:00
|
|
|
};
|
2017-01-30 21:56:43 +00:00
|
|
|
}
|