Unable to scrape local prometheus endpoint using open telemetry collector docker #7487
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
Uh oh!
There was an error while loading. Please reload this page.
-
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 !
config.txt
Beta Was this translation helpful? Give feedback.
All reactions