From 53c592abd9e5e52f7d32a7ba3861ede6a4a7b35f Mon Sep 17 00:00:00 2001 From: goeranh Date: Mon, 20 Apr 2026 13:52:57 +0200 Subject: [PATCH] add extra inputs option for the loki and mimir sinks --- modules/monitoring.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/monitoring.nix b/modules/monitoring.nix index 86f7573..c46b660 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -16,6 +16,20 @@ in { description = "Supplementary groups added to the vector systemd service to allow reading protected log files."; example = [ "nginx" "postfix" ]; }; + + extraMetricInputs = lib.mkOption { + type = lib.types.listOf lib.types.str; + default = []; + description = "Additional vector component IDs to feed into the mimir sink alongside host_metrics."; + example = [ "proxmox_normalize_metrics" ]; + }; + + extraLogInputs = lib.mkOption { + type = lib.types.listOf lib.types.str; + default = []; + description = "Additional vector component IDs to feed into the loki sink alongside journald_logs."; + example = [ "proxmox_normalize_logs" ]; + }; }; config = { @@ -70,14 +84,15 @@ in { sinks = { mimir = { type = "prometheus_remote_write"; - inputs = [ "add_host_label_metrics" ]; + inputs = [ "add_host_label_metrics" ] ++ cfg.extraMetricInputs; endpoint = "https://met.adm.htw.stura-dresden.de/api/v1/push"; tls.verify_certificate = false; + healthcheck.enabled = false; }; loki = { type = "loki"; - inputs = [ "add_host_label_logs" ]; + inputs = [ "add_host_label_logs" ] ++ cfg.extraLogInputs; endpoint = "https://log.adm.htw.stura-dresden.de"; labels = { host = "{{ host }}";