envoyproxy / ratelimit

Go/gRPC service designed to enable generic rate limit scenarios from different types of applications.
Apache License 2.0
2.21k stars 428 forks source link

feat(DogStatsD): parse EXTRA_TAGS to move from metric name into statsd tags #625

Closed JDeuce closed 2 weeks ago

JDeuce commented 2 weeks ago

When using the godogstats sink, previously the EXTRA_TAGS would not be emitted as statsd tags but as part of the metric name.

This PR adds additional string processing on the metrics in the dogstatsd sink, in order to emit them in the required format for datadog.

Also update the example regex in readme with a more optimal match example (greedily matches any potential extra dots in the descriptor)