1
0
Fork 0
dotfiles/system/nixos/telegraf.nix

26 lines
480 B
Nix
Raw Permalink Normal View History

2024-01-23 21:57:01 +00:00
{
services.telegraf = {
enable = true;
extraConfig = {
inputs = {
syslog = {
server = "udp://:6514";
2024-02-20 14:24:51 +00:00
syslog_standard = "RFC5424";
2024-01-23 21:57:01 +00:00
best_effort = true;
};
};
outputs = {
loki = {
domain = "http://127.0.0.1:3100";
endpoint = "/loki/api/v1/push";
timeout = "15s";
};
};
};
};
networking.firewall.interfaces."vlan777".allowedUDPPorts = [ 6514 ];
}