21c284a2c7
also add europastats
21 lines
313 B
Nix
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";
|
|
}];
|
|
};
|
|
};
|
|
};
|
|
}
|