Open muuki88 opened 3 years ago
Sorry for the delay. I put this on my TODO list, but I would like to get Exemplars done first before I look into Dropwizard. I will get back to this issue.
No worries :heart: I would open a pull request with this feature if it helps you and there's a chance this can get merged :smile:
Hi,
Thanks for the custom mapper config on the dropwizard export. It makes creating tags really easy :heart:
I found a restriction in the regex that makes it impossible for me to create a certain configuration.
:
are not allowed and we have metrics that containip:port
in the metric name.https://github.com/prometheus/client_java/blob/29dfd0a2bf9b93282764d31447b843a1d36d4f10/simpleclient_dropwizard/src/main/java/io/prometheus/client/dropwizard/samplebuilder/MapperConfig.java#L25
This is what the mapper config would look like
So the metric currentely ends up like this in prometheus
which gets messy as ports change.
Suggestion
Add
:
to the global regex.I don't know what implications this would have