cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Instrument Docker Container running Jupyter Notebook

rswarnka
Helper

Hello there,

Trying to instrument docker container running jupyter notebook.

docker run -it -d --rm -p 8888:8888 -v c:/docker/docker_data/:/rswarnka/ -e ONEAGENT_INSTALLER_SCRIPT_URL="https://tenant.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&flavor=default&Api-Token=MyTocken" dynatrace/oneagent --set-app-log-content-access=true pyradix-python:v0.2 jupyter notebook --ip='*' --port=8888 --allow-root --NotebookApp.token='' --NotebookApp.password=''

However, container id is generated but exits immediately instead of continue to run. What is missing here?

2 REPLIES 2

mreider
Dynatrace Advisor
Dynatrace Advisor

Hi there. I imagine you would have to use the Python SDK here. This would take some hackery, since the SDK requires you to create trace method on your own.

https://github.com/Dynatrace/OneAgent-SDK-for-Python#using-the-oneagent-sdk-for-python-in-your-appli...

Kubernetes beatings will continue until morale improves

dave_mauney
Dynatrace Champion
Dynatrace Champion

You might also want to check out this project on Github: https://github.com/dlopes7/autodynatrace

Featured Posts