-
Notifications
You must be signed in to change notification settings - Fork 799
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
OTLP native support #4981
Comments
I think this makes lots of sense... I just dont know if the OTLP data model can be translated to prometheus data model with no lost (histograms?).. |
we can try to follow https://opentelemetry.io/docs/reference/specification/metrics/data-model/#otlp-metric-points-to-prometheus There are Histograms and ExponentialHistograms. The latter is apparently a no go for prometheus. But I think for experimental support we just do what's easy (counters, gauges, etc). Nobody is expecting full compatibility in our initial support. |
Based on Prometheus dev summit notes https://docs.google.com/document/d/11LC3wJcVk00l8w5P3oLQ-m3Y37iom6INAMEu2ZAGIIE/edit, Prometheus will support this natively soon and we can just reuse the handler. I recommend us to wait for upstream to not reinvent weels ourselves.
|
FYI for the upstream OTLP PR prometheus/prometheus#11965. |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
prometheus/prometheus#12571 Got merged and we can start integrating it. I think Cortex cannot just reuse the handler as it is. We need to add some other code to ingest/convert otlp metrics to Cortex request format |
Hi @friedrichg, just wondering if you're still working on this. I'd like to help out if possible. |
hey @CharlieTLe , yes I am working on it. The function that I was using is about to change open-telemetry/opentelemetry-collector-contrib#31385 Gotta make sure the change is in line with what we need. |
Is your feature request related to a problem? Please describe.
Currently, Cortex only supports Prometheus remote write protocol, with OTel is becoming more and more popular, more apps use OTel instrument SDK to export metrics but we can't push OTLP metrics to Cortex directly.
Describe the solution you'd like
Adding OTLPHttp exporter native support.
Describe alternatives you've considered
Although we can use OTel Collector to transform OTLP to Prometheus remote wirte protocol, which means we need extra maintenance an collector service.
The text was updated successfully, but these errors were encountered: