Skip to content
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

Not able to find PrometheusExporter class in Prometheus Exporter #908

Closed
debasis09 opened this issue Jul 17, 2021 · 3 comments
Closed

Not able to find PrometheusExporter class in Prometheus Exporter #908

debasis09 opened this issue Jul 17, 2021 · 3 comments

Comments

@debasis09
Copy link

There are documentation available in the net that we need PrometheusExporter class object to Export the metrics which will be scraped by Prometheus server.
Even found the sample code like

address = "localhost:8080";
PrometheusExporter exporter{address};
//.......prepare metrices then
exporter.Export(collection);

But when I downloaded the opentelemetry-cpp repo I did not find any prometheus_exporter.h or prometheus_exporter.cc in the repo.

Can you plz tell me where to find PrometheusExporter class or how to export the "collection" without PrometheusExporter class.

@lalitb
Copy link
Member

lalitb commented Jul 19, 2021

Prometheus Exporter is incomplete ( see PR : #263). The metrics specs have been reworked since the exporter work was done, and most of the metrics C++ code would need a rewrite. Would suggest you not use the current code. Will close this ticket.

@lalitb lalitb closed this as completed Jul 19, 2021
@debasis09
Copy link
Author

Thanks for your response. I just would like to ask that did you mean the complete Prometheus Exporter code inside "exporters/prometheus/" I should not use for my application?

@lalitb
Copy link
Member

lalitb commented Jul 20, 2021

Yes, the current implementation is incomplete, and it will change in the future to align with the updated metrics specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants