metrics icon indicating copy to clipboard operation
metrics copied to clipboard

metrics-exporter-prometheus: exemplar support

Open clux opened this issue 4 years ago • 10 comments

A way to attach traceids to histograms as per the OpenMetics specifictaion

Use case is grafana tempo

clux avatar Feb 09 '21 10:02 clux

Taking a cursory glance, this is definitely more work than I'd be comfortable taking on personally. I'd accept a PR adding this functionality and can try and offer some guidance on working through it if need be.

I'll leave the issue open for anyone else looking for the same thing.

tobz avatar Feb 09 '21 13:02 tobz

Completely understand. Mostly wanted to see if there was interest around for it as it looked cool. Thanks for keeping a tracking issue.

clux avatar Feb 09 '21 13:02 clux

If nobody is working on this then I'd like to give it a try.

After a quick look into the spec and the Go client, it seems that the first step is to implement Open Metrics negotiation and encoding: https://github.com/prometheus/client_golang/blob/master/prometheus/promhttp/http.go#L356. Please correct me if I'm wrong, but it looks like metrics-exporter-prometheus does not support Open Metrics yet. Then we can extend Histogram with Exemplar, implement recording and emission.

gsserge avatar Mar 09 '21 22:03 gsserge

Nobody is working on this as far as I know, so it's all yours. :)

tobz avatar Mar 09 '21 23:03 tobz

@gsserge any progress so far? I'm interested in this feature, I'd be glad to help get it through

wperron avatar Jun 09 '21 12:06 wperron

@gsserge @wperron did you start working on this? I'm thinking of looking into this in the upcoming weeks, so if you have made any progress or figured something out while looking into or have any other info regarding this it would be appreciated

fredr avatar Jul 21 '22 07:07 fredr

@gsserge @wperron did you start working on this? I'm thinking of looking into this in the upcoming weeks, so if you have made any progress or figured something out while looking into or have any other info regarding this it would be appreciated

Hey 👋 I have not worked on this no, changing priorities and all, feel free to take it

wperron avatar Jul 28 '22 20:07 wperron

@fredr looks like you made significant progress on this. Do you plan on continuing the effort in that PR? I'm also keen for this and may (hopefully) have some capacity to take a look soon.

campbellC avatar Nov 15 '22 17:11 campbellC

hey @campbellC, I'm happy to continue with it, but waiting for some feedback on how it should be implemented.

The PR so far is just a proof of concept and a base for discussion, and I've dropped the momentum a bit since the summer, but I will try to get it rolling again.

If you have any feedback on the PR or ideas how it could be implemented differently, let me know!

fredr avatar Nov 16 '22 09:11 fredr

I've dropped this for now, as I don't have time to put into it. Feel free to pick it up

fredr avatar Jul 19 '23 08:07 fredr