receive proxmox logs
This commit is contained in:
parent
dd2aa96e25
commit
93e27dd3e5
1 changed files with 21 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue