Skip to content

Using the Prometheus exporter #3537

Answered by dmathieu
aftix asked this question in Q&A
Discussion options

You must be logged in to vote

You seem to be mixing traces and metrics. Prometheus is a metrics system, it can only expose that factor, not traces.
Did you look at the prometheus example? It shows how to configure it in a sample app, and exposes a few metrics: https://github.com/open-telemetry/opentelemetry-go/blob/main/example/prometheus/main.go

However, with prometheus, you won't "send" data, as it's a pull-based system. The prometheus exporter will allow you to expose a /metrics endpoint that prometheus can parse. Then, grafana can hook into your prometheus instance and use the data from there.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MrAlias
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants