receive proxmox logs

This commit is contained in:
goeranh 2026-04-20 13:07:21 +02:00
parent dd2aa96e25
commit 93e27dd3e5
No known key found for this signature in database

View file

@ -28,6 +28,8 @@
allowedTCPPorts = [
80
443
4317 # OTLP gRPC (Proxmox)
4318 # OTLP HTTP (Proxmox)
];
};
};
@ -198,6 +200,25 @@
};
};
# Vector - receive OpenTelemetry data from Proxmox and forward to Loki/Mimir
services.vector.settings = {
sources.proxmox_otlp = {
type = "opentelemetry";
grpc.address = "0.0.0.0:4317";
http.address = "0.0.0.0:4318";
};
sinks.mimir.inputs = lib.mkForce [
"add_host_label_metrics"
"proxmox_otlp.metrics"
];
sinks.loki.inputs = lib.mkForce [
"add_host_label_logs"
"proxmox_otlp.logs"
];
};
services.openssh.enable = true;
system.stateVersion = "25.11";