qnikst / prometheus-haskell

Haskell client library for exposing prometheus.io metrics.
7 stars 1 forks source link

Add the possiblity for using labels in combination with Histograms #13

Open L7R7 opened 4 years ago

L7R7 commented 4 years ago

I'm currently trying to measure the latency of outgoing HTTP requests. I want to add a label for the path of the requested resource to allow grouping and filtering the latencies by path. As far as I can see, there's no way to do this with the current options.

I see that this question was discussed in the project this project was forked off, but I don't see a solution there. There's a workaround described in https://github.com/fimad/prometheus-haskell/issues/22#issuecomment-353125251, but I think it would be great to have the library made this use simpler to use.