prometheus-exporters: update rspamd exporter for prometheus-json-exporter >=0.5.0

This commit is contained in:
Enno Richter 2023-01-02 06:36:22 +01:00
parent a4379d2b0d
commit ed060ff92b

View File

@ -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;