about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobin Gloster2021-05-11 14:11:53 -0500
committerRobin Gloster2021-05-11 17:57:46 -0500
commitda85657a6cb0f957eb1e19804cfbd19829e06fd9 (patch)
tree2b224d2074d972ca5088f5a5837a40c211d1f13c /nixos
parent0a75e25dacf1c1b025a7fdf4fc08e7cded8116b7 (diff)
prometheus-rspamd-exporter: fix for new json exporter syntax
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix b/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix
index 78fe120e4d93..d95e5ed9e83c 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'"