You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
In the documentation it says that one needs to override the original normalizePath function to add custom logic.
Is it possible to do so also by specifying a normalizePath key in the config passed to the promBundle function call?
for example: (my config, in the code i call promBundle(config.get("prometheus")))
prometheus:
includeMethod: true
includePath: true
promClient:
collectDefaultMetrics:
timeout: 1000
normalizePath:
'\/auth\/token\/.*$': '/auth/token/*' => this will get magically parsed and added to the paths-to-normalize
Thank you,
Yarden
The text was updated successfully, but these errors were encountered:
... on the second thought your suggestion is more flexible. I've implemented in v 4.1.0 (just published on npm). It's different from your suggestion in terms how the regexps are defined: it's all based on arrays instead of object with regex as a key.
Hello,
In the documentation it says that one needs to override the original
normalizePath
function to add custom logic.Is it possible to do so also by specifying a
normalizePath
key in the config passed to thepromBundle
function call?for example: (my config, in the code i call
promBundle(config.get("prometheus"))
)Thank you,
Yarden
The text was updated successfully, but these errors were encountered: