From 77b02c7302c36b02a102526d3481027648511430 Mon Sep 17 00:00:00 2001 From: Konstantin Pogorelov Date: Tue, 17 Aug 2021 10:11:10 +0300 Subject: [PATCH] add README docs for urlPathReplacement, see #75 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fbdb81..84639e6 100644 --- a/README.md +++ b/README.md @@ -80,10 +80,11 @@ Additional options for **summary**: See the [docs](https://github.com/disjunction/url-value-parser) of url-value-parser module for details. * **formatStatusCode**: `function(res)` producing final status code from express `res` object, e.g. you can combine `200`, `201` and `204` to just `2xx`. * **transformLabels**: `function(labels, req, res)` transforms the **labels** object, e.g. setting dynamic values to **customLabels** +* **urlPathReplacement**: replacement string for the values (default: "#val") ### Other options ### -* **autoregister**: if `/metrics` endpoint should be registered. (Default: **true**) +* **autoregister**: if `/metrics` endpoint should be registered (default: **true**) * **promClient**: options for promClient startup, e.g. **collectDefaultMetrics**. This option was added to keep `express-prom-bundle` runnable using confit (e.g. with kraken.js) without writing any JS code, see [advanced example](https://github.com/jochen-schweizer/express-prom-bundle/blob/master/advanced-example.js)