Files
notifications-api/statsd_mapping.yml
Alexey Bezhan 528b095fcc 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_`.
2019-04-24 13:50:13 +01:00

12 lines
255 B
YAML

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"