Exposing prometheus exemplar metrics with auto-instrument

60 views
Skip to first unread message

Medeti Vamsi Krishna

unread,
Jul 21, 2021, 7:22:09 AM7/21/21
to Prometheus Users

Hi,
May I know how can I auto-instrument the java code for exposing metrics along with exemplars?
I tried the procedure mentioned here: https://github.com/prometheus/client_java/blob/master/OTEL_EXEMPLARS.md. But in the code, it looks like we have to create the metrics and add the instrumentation before every call.

It is mentioned here: https://github.com/prometheus/client_java/blob/master/OTEL_EXEMPLARS.md, that we can add the exemplars without changing the code. But May I know how to do that?

Reply all
Reply to author
Forward
0 new messages