Skip to content

Commit

Permalink
Update prom-statsd-exporter config
Browse files Browse the repository at this point in the history
Signed-off-by: Jackson Davis <[email protected]>
  • Loading branch information
jcdavis committed Aug 16, 2024
1 parent 91484c5 commit 2e021c4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions examples/prom-statsd-exporter/conf.yaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,45 @@
mappings: # Requires statsd exporter >= v0.6.0 since it uses the "drop" action.
- match: "ratelimit.service.rate_limit.*.*.near_limit"
name: "ratelimit_service_rate_limit_near_limit"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
- match: "ratelimit.service.rate_limit.*.*.over_limit"
name: "ratelimit_service_rate_limit_over_limit"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
- match: "ratelimit.service.rate_limit.*.*.total_hits"
name: "ratelimit_service_rate_limit_total_hits"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
- match: "ratelimit.service.rate_limit.*.*.within_limit"
name: "ratelimit_service_rate_limit_within_limit"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"

- match: "ratelimit.service.rate_limit.*.*.*.near_limit"
name: "ratelimit_service_rate_limit_near_limit"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
key2: "$3"
- match: "ratelimit.service.rate_limit.*.*.*.over_limit"
name: "ratelimit_service_rate_limit_over_limit"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
key2: "$3"
- match: "ratelimit.service.rate_limit.*.*.*.total_hits"
name: "ratelimit_service_rate_limit_total_hits"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
key2: "$3"
- match: "ratelimit.service.rate_limit.*.*.*.within_limit"
name: "ratelimit_service_rate_limit_within_limit"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
Expand All @@ -67,7 +59,7 @@ mappings: # Requires statsd exporter >= v0.6.0 since it uses the "drop" action.

- match: "ratelimit_server.*.response_time"
name: "ratelimit_service_response_time_seconds"
timer_type: histogram
observer_type: histogram
labels:
grpc_method: "$1"

Expand All @@ -78,9 +70,14 @@ mappings: # Requires statsd exporter >= v0.6.0 since it uses the "drop" action.
name: "ratelimit_service_config_load_error"
match_metric_type: counter

- match: "ratelimit.service.rate_limit.*.*.shadow_mode"
name: "ratelimit_service_rate_limit_shadow_mode"
labels:
domain: "$1"
key1: "$2"

- match: "ratelimit.service.rate_limit.*.*.*.shadow_mode"
name: "ratelimit_service_rate_limit_shadow_mode"
timer_type: "histogram"
labels:
domain: "$1"
key1: "$2"
Expand Down

0 comments on commit 2e021c4

Please sign in to comment.