about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-01-15 02:49:52 +0100
committerGitHub <noreply@github.com>2023-01-15 02:49:52 +0100
commitfa8ae2120d161e26a96dda1d57669288c37d9ad2 (patch)
tree1e2700dbbbdc8a15fe54ca5fedfc9a78ada2e111 /nixos
parent131879f79d1e44c9884aa199c2fa23a3141adae8 (diff)
parented060ff92b34bba159fe52a5697030be6e3a4805 (diff)
Merge pull request #208715 from elohmeier/prom-rspamd-fix
Fixes https://github.com/NixOS/nixpkgs/issues/210390
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 0b48827f43f7b..f9dcfad07d300 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix
@@ -9,7 +9,7 @@ let
     pkgs.writeText "rspamd-exporter-config.yml" (builtins.toJSON conf);
 
   generateConfig = extraLabels: {
-    metrics = (map (path: {
+    modules.default.metrics = (map (path: {
       name = "rspamd_${replaceStrings [ "[" "." " " "]" "\\" "'" ] [ "_" "_" "_" "" "" "" ] path}";
       path = "{ .${path} }";
       labels = extraLabels;