I am looking for some guidance on monitoring docker containers with dockerized dynatrace agent. The collector and server are on-prem.
I added following service to docker-compose.yml that has a dockerized java application.
| - "/tmp/log/dynatrace/agents/dtagent:/dynatrace/log/agent"|
I assume this is waaaaay too late, but I had the same question today...turns out it's quite simple actually, just change the DT_COLLECTOR_NAME=dtcollector in the .env file to the hostname/ip of the non-Docker Collector i.e. DT_COLLECTOR_NAME=MY-LAPTOP
At least, that's how I got it to work, although it was all on my local laptop (MY-LAPTOP) and a VM (LAB-VM) running Ubuntu + Docker containers.