use extra input sink options
This commit is contained in:
parent
53c592abd9
commit
e1530c606f
1 changed files with 21 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue