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

21 lines
313 B
Nix
Raw Normal View History

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