stockholm/makefu/2configs/stats/telegraf/default.nix
2017-12-05 15:16:13 +01:00

18 lines
272 B
Nix

{...}:
let
url = "http://localhost:8086";
in {
services.telegraf = {
enable = true;
extraConfig = {
agent.debug = true;
outputs = {
influxdb = [{
urls = [ url ];
database = "telegraf";
}];
};
};
};
}