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";
};
sinks.mimir.inputs = lib.mkForce [
"add_host_label_metrics"
"proxmox_otlp.metrics"
];
transforms.proxmox_normalize_logs = {
type = "remap";
inputs = [ "proxmox_otlp.logs" ];
source = ''
.host = string(.resources."host.name") ?? "proxmox"
.unit = string(.attributes."service.name") ?? "proxmox"
'';
};
sinks.loki.inputs = lib.mkForce [
"add_host_label_logs"
"proxmox_otlp.logs"
];
transforms.proxmox_normalize_metrics = {
type = "remap";
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;