mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -05:00
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:
11
statsd_mapping.yml
Normal file
11
statsd_mapping.yml
Normal 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"
|
||||||
Reference in New Issue
Block a user