stockholm/makefu/2configs/stats/telegraf/default.nix
makefu 21c284a2c7
ma telegraf: init
also add europastats
2017-09-19 16:37:46 +02:00

21 lines
313 B
Nix

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