-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Verify new Prometheus exposition formats are supported #24707
Comments
Pinging @elastic/integrations (Team:Integrations) |
I did some investigation based on the issue reported at #24554. I used instrumenting-java-for-prometheus repo mentioned at #24554 (comment) so as to mime a prom exporter with the new type of metrics.
Despite the fact that I explicitly set them to
Taking the above into consideration having
openmetrics module so far we cannot from now on since prometheus and openmetrics formats have diverged.
If we want to support openmetrics from now on we need to update our parsing helper and use |
The Java client seems to check only that If for version < 1.0.0 this should provide the old format, would this be a bug in this library? In any case updating the parser sounds as the way to go. |
this is a big bug that we are running into at this time. given that this is only required for open metrics module, we should ideally only set this header for the same instead of doing it across all prometheus like modules. once we have moved parser implementations, we can make this the default. thoughts? |
I see openmetrics introduced a few new metric types, we will need to think about how we will map them into ES documents, I see that at least we need to think about what to do with |
There is an open PR related to this: #26308 |
New PR: #27269 |
So to summarize the open items here:
|
The respective PR was merged: #33865
It will be addressed at elastic/integrations#628. Since both items are covered we can close this issue by now (cc: @gizas). |
Recently there have been reported issues with new openmetrics types. We need to investigate how new formats will be supported and maybe update our prometheus library (expfmt) (or move to a new one) so as to support all generic cases and eliminate parsing errors.
expfmt
? Evaluate using textparseSomething interesting is that at #17291 the header was added to work in general for all cases since these are the headers used by prometheus upstream too.
cc: @exekias @jsoriano @newly12 @masci
The text was updated successfully, but these errors were encountered: