-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[prometheusexporter] / [prometheusremotewriteexporter] Support for exemplars #5192
Comments
There is this issue #5177 which proposes to update the spanmetricsprocessor in order to inject the |
Oh ! Exemplars are something common in otel metric model ? There is no tricks needed based on attributes ? In this case the emitter (if talks otel protocol) can set exemplars and send it in otlp ? |
From what I understand from the Otel Protocol, Yes |
I'm also interested in using prometheusexporter as a way to generate metrics with exemplar data from I think maybe the first step is something like making |
For the prometheusexporter, the way to convert OpenTelemetry exemplars to prometheus is now described in the specification: |
Great! Thanks @dashpole for all your recents clarifications in the doc ! Out of current scope |
#8265 tracks using |
Signed-off-by: Bogdan Drutu <[email protected]>
hi everyone, I use prometheusreceiver to scape a prometheus exporter with exempalrs metrics. when I use prometheusremotewriter exporter to push them to mimir (tsdb backend), I find the exemplars data had been dropped. The Prometheus remote wirte has SendExemplars filed to control exemplars send or not, but I don't know if there is any other way to solve this problem,thanks. |
What version of the collector are you using? Unfortunately, exemplar support in the prometheus receiver was just reverted, so that will need to be reintroduced before that scenario will work. |
@dashpole sorry replay late, I used container with tag |
hi @dashpole I do a test with OTel Collector ( receiver is prometheus, exporter is prometheusremotewrite) , but I found the Collector don't support exemplars yet. here is my test code https://github.com/grafanafans/prometheus-exemplar/blob/remote_prometheus/config/otel-collector.yaml#L7 Why I use prometheus exporter rather than OTLP for my application, because I find I can't add an examplar to a meter with Go SDK. |
Any idea when this support gets reintroduced? Also In which version does this get removed? I'd like to know if my application setup does work with exemplars. |
This was fixed by #14132. It will be released next release (v0.63.0) |
Is your feature request related to a problem? Please describe.
Exemplars in prometheus are a very new feature but also very basic to expose and are completly consistent with the goal of OpenTelemetry.
They are kind a ephemaral metadata attached to a metric point in OpenMetrics format (https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#exemplars)
Describe the solution you'd like
I'm not 100% of the strategy here... but I have some ideas.
Create a config like :
It makes no sense to create exemplars from resources or low cardinality labels, but it's definitely useful for trace or span IDs.
I'm not sure how to expose them because I didn't start to work with them for now...
Format explainations :
If I understand the concept we can't capture all the traces ids... so we have to one sample randomly or chose a pertinent one when we export a value. Any suggestion ?
Additional context
Higly needed to allow traces and metrics correlation on Grafana or any vizualization tool based on prometheus.
The text was updated successfully, but these errors were encountered: