mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 23:02:13 -05:00
`statsd_mapping.yml` sets all timers to default to a Prometheus histogram metric type and renames all metrics to start with `notifications_`.
12 lines
255 B
YAML
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"
|