Add statsd exporter metric mapping configuration file

`statsd_mapping.yml` sets all timers to default to a Prometheus
histogram metric type and renames all metrics to start with `notifications_`.
This commit is contained in:
Alexey Bezhan
2019-04-24 11:24:21 +01:00
parent 570cbc3eab
commit 528b095fcc

11
statsd_mapping.yml Normal file
View File

@@ -0,0 +1,11 @@
defaults:
timer_type: histogram
buckets: [.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 25]
ttl: 0 # metrics do not expire
mappings:
- match: (\w+)\.notifications\.(.+)
match_type: regex
name: "notifications_${2}"
labels:
space: "$1"