Unable to scrape my prometheus endPoint using docker otel/opentelemetry-collector #20546
Unanswered
debashish-github
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have an existing application that emits metrics in prometheus format at a specific endpoint localhost:8080/actuator/prometheus. I want to convert the prometheus metrics to opentelemetry format for my downstream products to consume. I am using opentelemetry collector to realize this. But the collector never scrapes the prometheus metrics emitted by my application.
I am using the following docker command as mentioned in the documentation https://opentelemetry.io/docs/collector/getting-started/#docker .
docker run -v $(pwd)/config.yaml:/etc/otelcol-contrib/config.yaml otel/opentelemetry-collector:0.74.0
My config.yaml file is attached . The same config file when run via windows collector using otelcol.exe works fine.
Any help is greatly appreciated !
Thanks
config.txt
Beta Was this translation helpful? Give feedback.
All reactions