Merge pull request #208715 from elohmeier/prom-rspamd-fix

Fixes https://github.com/NixOS/nixpkgs/issues/210390
This commit is contained in:
Sandro 2023-01-15 02:49:52 +01:00 committed by GitHub
commit fa8ae2120d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;