-
Notifications
You must be signed in to change notification settings - Fork 438
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
Prometheus example crashes #1903
Comments
Thanks for the report. Do you have a call stack by chance, this would help. |
Hi @bachittle, |
well that is what is being used by prometheus. Unless the address you specify in the url is what is used by another process (civet web server)? In that case how do you specify where the prometheus url is? |
sorry I mentioned the wrong port. The default port for the example app is |
ok, so the documentation seems to be a bit confusing then in this regard. It says it will export data via the metrics_exporter::PrometheusExporterOptions::url, but in the code this is set to |
@bachittle - There are few changes in prometheus exporter recently in main branch (#1953), can you follow the example and see if you can fetch the metrics - https://github.com/open-telemetry/opentelemetry-cpp/blob/main/examples/prometheus/main.cc Meanwhile, will go through the docs and modify the steps documented there. |
thank you, have been working on other things but glad this got fixed! |
Describe your environment Describe any aspect of your environment relevant to the problem, including your platform, build system, version numbers of installed dependencies, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main branch.
Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
What is the expected behavior?
What did you expect to see?
What is the actual behavior?
What did you see instead?
null context when constructing CivetServer. Possible problem binding to port.
The text was updated successfully, but these errors were encountered: