stockholm/makefu/2configs/stats/telegraf/default.nix

18 lines
272 B
Nix
Raw Normal View History

2017-09-19 14:37:46 +00:00
{...}:
let
url = "http://localhost:8086";
in {
services.telegraf = {
enable = true;
extraConfig = {
agent.debug = true;
outputs = {
influxdb = [{
urls = [ url ];
database = "telegraf";
}];
};
};
};
}