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

26 lines
480 B
Nix
Raw Normal View History

2024-01-23 21:57:01 +00:00
{
services.telegraf = {
enable = true;
extraConfig = {
inputs = {
syslog = {
server = "udp://:6514";
syslog_standard = "RFC3164";
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 ];
}