From da85657a6cb0f957eb1e19804cfbd19829e06fd9 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 11 May 2021 14:11:53 -0500 Subject: [PATCH] prometheus-rspamd-exporter: fix for new json exporter syntax --- .../modules/services/monitoring/prometheus/exporters/rspamd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix b/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix index 78fe120e4d9..d95e5ed9e83 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix @@ -13,7 +13,7 @@ let generateConfig = extraLabels: { metrics = (map (path: { name = "rspamd_${replaceStrings [ "." " " ] [ "_" "_" ] path}"; - path = "$.${path}"; + path = "{ .${path} }"; labels = extraLabels; }) [ "actions.'add header'"