From 1a148215deffacc07c1ae656639a57f8fcaf4d26 Mon Sep 17 00:00:00 2001 From: Pedro Tanaka Date: Wed, 29 Jun 2022 10:18:15 +0200 Subject: [PATCH] Adding note about behavior of .+ regex Signed-off-by: Pedro Tanaka --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 55bac74..189e754 100644 --- a/README.md +++ b/README.md @@ -334,6 +334,8 @@ mappings: If a metric `my.statsd_counter` is received, the metric name will **still** be mapped to `my_statsd_counter` (Prometheus compatible name). But the metric will also have the label `statsd_metric_name` with the value `my.statsd_counter` (unchanged value). +Note: If you use the `match` like the example (i.e. `.+`), be aware that it will be a "catch-all" block. So it should come at the very end of the mapping list. + The same is not achievable with glob matching, for more details check [this issue](https://github.com/prometheus/statsd_exporter/issues/438). ### Naming, labels, and help