diff options
author | Enno Richter <enno@nerdworks.de> | 2023-01-02 06:36:22 +0100 |
---|---|---|
committer | Enno Richter <enno@nerdworks.de> | 2023-01-02 06:36:22 +0100 |
commit | ed060ff92b34bba159fe52a5697030be6e3a4805 (patch) | |
tree | d968e5f378199af56788d3096e5ebc55315e87b1 /nixos/modules/services/monitoring/prometheus/exporters | |
parent | a4379d2b0deefedc8dba360897557707ea9ee9a7 (diff) |
prometheus-exporters: update rspamd exporter for prometheus-json-exporter >=0.5.0
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/exporters/rspamd.nix | 2 |
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; |