Files
imladris/configs/metrics/exporters.nix
T
kyle f32db3c88b metrics: systemd unit-include as [.]service
systemd drops \. in unit-include and warns about unknown escapes.
2026-09-24 01:22:16 -07:00

18 lines
507 B
Nix

# Node exporter on tailscale0 only. openFirewall stays false (that hole is LAN-wide).
{ ... }:
{
services.prometheus.exporters.node = {
enable = true;
port = 9100;
listenAddress = "0.0.0.0";
enabledCollectors = [ "systemd" ];
extraFlags = [
"--collector.systemd.enable-restarts-metrics"
"--collector.systemd.unit-include=(llama-server|llama-vision)[.]service"
];
openFirewall = false;
};
networking.firewall.interfaces.tailscale0.allowedTCPPorts = [ 9100 ];
}