client_rust icon indicating copy to clipboard operation
client_rust copied to clipboard

Missing GaugeWithExemplar

Open bobrik opened this issue 2 years ago • 2 comments

I want to have a GaugeWithExemplar that adds an exemplar whenever gauge derivates from zero. The actual use-case is making a flamegraph and putting it into the exemplar label, so that it can be easily found.

It seems like it would mostly be a copy of CounterWithExemplar, so I'm happy to make a PR if this makes sense.

bobrik avatar Jan 05 '23 23:01 bobrik

Apparently there's https://github.com/OpenObservability/OpenMetrics/issues/241.

bobrik avatar Jan 16 '23 03:01 bobrik

Thanks for the input. No opinion here, i.e. not opposed to merging a patch. Just want to be consistent with Prometheus and/or OpenMetrics.

mxinden avatar Jan 18 '23 17:01 mxinden