-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot map StatsD metrics with consecutive dashes in name #380
Labels
Comments
evandam
changed the title
Cannot map StatsD metrics with dashes in name
Cannot map StatsD metrics with consecutive dashes in name
Jun 17, 2021
Yea, I'm not sure why the dash is outside the character class matching. |
Yes, seems like we can allow this. Will you make a PR @evandam? |
Looks like that was relaxing things "a little bit" – if there is a need,
and it doesn't cause downstream issues, I am happy to relax things more.
…On Thu, Jun 17, 2021 at 8:01 AM Ben Kochie ***@***.***> wrote:
It looks like the multi-dash bad test was added in #24
<#24>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#380 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABAEBWB4CUX3N3BRATXDUTTTGTWLANCNFSM462PM6AA>
.
|
This is now fixed for mapped metrics (#381). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to reference an incoming StatsD metric with two dashes
--
in the name results in an error startingstatsd-exporter
. Replacing the dashes with an underscore results in the metric not being mapped, though.If I had to guess, https://github.com/prometheus/statsd_exporter/blob/master/pkg/mapper/mapper.go#L33-L37 should be tweaked to allow
*
dashes.Example metric
default-ubuntu-1804_kitchen.fabio--requests.count:0|c
Mapping with underscores:
Results in autogenerated metric mapping, not what we specify.
Mapping with dashes as seen in incoming metric:
statsd-exporter
logs:The text was updated successfully, but these errors were encountered: