<https://github.com/SigNoz/sample-flask-app> Sampl...
# support
a
https://github.com/SigNoz/sample-flask-app Sample flask app service is not able to instrument to signoz dashboard. While installing signoz on docker containers, it creates a different new docker network and the docker commands provided in the github repo starts flask app or mongodb containers in other network, and hence there will be no connectivity by default with oltp containers and flask app service containers. Commands helped me starting flask-app, mongo containers in signoz deployment network named "clickhouse-setup_default". $docker run --rm --network clickhouse-setup_default --name my-mongo -it -dp 27017:27017 mongo:latest $ docker run -e MONGO_HOST="my-mongo" -e OTEL_RESOURCE_ATTRIBUTES='service.name=pythonApp' -e OTEL_EXPORTER_OTLP_ENDPOINT='http://clickhouse-setup_otel-collector_1:4317' --network clickhouse-setup_default -dp 5000:5000 signoz/sample-flask-app:latest Please verify this. It worked for me.
p
Hi @Ankur! Yes, that would work as well. However, we can instead connect via host address. In case of Linux, use
172.17.0.1
and in case of MacOS, use
host.docker.internal
. We could further simplify it using
add-host
parameter in case of Docker CLI and
extra_hosts
in case of Docker-Compose to connect via Host.