-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
otel to prometheus #6152
Comments
Did you take a look at this example? |
hi @dmathieu can you use both prom export and OTLP exporter (otlpmetrigrpc.New() - https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc) for the NewMeterProvider?
i currently use OTLP exporter ... but i want to see the same metrics on a http endpoint for debugging metrics - so why i looked to export it using prom... or is there another way to see the metrics in addition on a local http endpoint when using OTLP exporter? |
Yes, you can setup a provider with multiple exporters. See the doc. |
i tried in the same way as this example https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/examples/prometheus/main.go but i dont see otel related metrics - counter and gauge i created myself - any idea?
|
Please provide your actual configuration code. |
Hi,
i have a question to exporting the metrics to prometheus. how can i export it with otelprom.New() and serveMetrics?
error:
i use:
The text was updated successfully, but these errors were encountered: