-
Notifications
You must be signed in to change notification settings - Fork 821
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
Remove prom-client from prometheus exporter #1039
Comments
Also see #1032 (comment) |
@astorm is this something you were thinking to handle or should I mark it as up for grabs? |
@dyladan Let's mark it up for grabs for now -- I don't think I'd be able to come back to it promptly. |
I think we should bring/inform this issue to a larger audience i.e. OT community or OT maintainers group. |
@mayurkale22 Quick related question if you have the time -- Re: "this issue" -- do you mean the specific problem with the |
There are two issues right now:
That's why it might be easier to just write someting (or use something that already exist) to just take the exported values and write them in the openmetrics spec than maintains "hacks" around |
@vmarchaud I'm not sure if the openmetrics spec is useable in place of the prometheus exposition format. Even if prometheus does ingest it properly, there may be subtle differences. It may be worth creating an openmetrics exporter to be clear about the distinction. edit: it looks like it is on their roadmap |
I would like to work on this as part of #1278. I'm assigning myself. |
@legendecas I guess my PR (#1038) would be replaced by yours then ? The only thing that would be realy useful when rewriting the exporter is to use prometheus metric type (like histogram and summary) |
@vmarchaud the prom-client part of the #1038 will be replaced by a new serializer, yet the choice on the aggregator mapping still has to be done. |
There is a similar hack for counter. I think removing prom-client is probably a good idea in the end.
Originally posted by @dyladan in #1038 (comment)
The main advantage of the prom-client is that it does aggregations for you. Because we do aggregation in the SDK, we actually have to work around this "feature" to force the prom-client to use the actual values instead of trying to aggregate new exported values with old values.
In the current state of the code, the prom-client
Counter
is destroyed and re-created on each export, and there is a similar proposed "hack" for measure in #1038The text was updated successfully, but these errors were encountered: