use extra input sink options

This commit is contained in:
goeranh 2026-04-20 13:53:12 +02:00
parent 53c592abd9
commit e1530c606f
No known key found for this signature in database

View file

@ -208,15 +208,28 @@
http.address = "0.0.0.0:4318"; http.address = "0.0.0.0:4318";
}; };
sinks.mimir.inputs = lib.mkForce [ transforms.proxmox_normalize_logs = {
"add_host_label_metrics" type = "remap";
"proxmox_otlp.metrics" inputs = [ "proxmox_otlp.logs" ];
]; source = ''
.host = string(.resources."host.name") ?? "proxmox"
.unit = string(.attributes."service.name") ?? "proxmox"
'';
};
sinks.loki.inputs = lib.mkForce [ transforms.proxmox_normalize_metrics = {
"add_host_label_logs" type = "remap";
"proxmox_otlp.logs" inputs = [ "proxmox_otlp.metrics" ];
]; source = ''
.tags.host = string(.resources."host.name") ?? "proxmox"
'';
};
};
stura.monitoring = {
extraMetricInputs = [ "proxmox_normalize_metrics" ];
extraLogInputs = [ "proxmox_normalize_logs" ];
}; };
services.openssh.enable = true; services.openssh.enable = true;