prometheus-rspamd-exporter: fix for new json exporter syntax

This commit is contained in:
Robin Gloster 2021-05-11 14:11:53 -05:00
parent 0a75e25dac
commit da85657a6c
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -13,7 +13,7 @@ let
generateConfig = extraLabels: {
metrics = (map (path: {
name = "rspamd_${replaceStrings [ "." " " ] [ "_" "_" ] path}";
path = "$.${path}";
path = "{ .${path} }";
labels = extraLabels;
}) [
"actions.'add header'"