How to create exemplar and expose via PrometheusExporter? #7564
-
I am trying to make exemplars exported from my application's custom metrics, using PrometheusExporter. I have an counter instance of I checked using below command. I can see my custom metric values there, but it doesn't have exemplar information like I enabled OpenMetrics option in the prometheus exporter config.
Am I missing something or doing incorrectly? I found an article about using I also found another person(@irizzant) asked similar question in this channel and he got solved his issue, but I don't know how he generated exemplar in his code. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @nemodev , Currently the OTel Prometheus exporter only supports exemplars in histograms. |
Beta Was this translation helpful? Give feedback.
Hey @nemodev ,
Currently the OTel Prometheus exporter only supports exemplars in histograms.
I'm not sure why we don't include exemplars when exporting other instruments' samples, I'll refer that question to @jack-berg