Can't find a clear example of sending metrics or traces to prometheus #2924
Unanswered
montaropdf
asked this question in
Q&A
Replies: 1 comment 13 replies
-
I followed this example to start Prometheus in a docker container. I used Once it was running I executed your code (I added the missing |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am, currently, studying and evaluating opentelemetry for integration to an application and how it would fit into the infrastructure.
I have searched, for some time, how to use the
opentelemetry-exporter-prometheus
to send metrics and traces to a prometheus instance, but can't find any example that actually show how to generate and send the data to prometheus.The only example I have found is https://opentelemetry.io/docs/instrumentation/python/exporters/#prometheus.
When I add code to actually generate metrics, the prometheus instance receives nothing, it seems.
Below is the code I use to generate metrics using opentelepetry and the prometheus exporter.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions