wodby / docker4php

Docker-based PHP stack
https://wodby.com/docker4php
MIT License
277 stars 44 forks source link

Setup datadog/agent:latest example #20

Closed gertvdb closed 1 year ago

gertvdb commented 1 year ago

Hi,

I'm trying to add datadog/agent:latest container to this stack to enable profiling on PHP. When i use this setup : https://github.com/DataDog/docker-compose-example it doesn't seem to work.

So i was wondering if I'm doing something wrong or forgetting some thing. It seem to connect since first i got an invalid api key warning back.

After fixing de DD_SITE: datadoghq.eu the warning went away and now i get :

Screenshot 2023-06-17 at 13 40 50

I was just wondering i maybe you got any idea's or i forgot something ? Or maybe add an example setup like you did with phpmyadmin, mailhog, ...

gertvdb commented 1 year ago

Nevermind i got it working, i'll close the ticket.

Needed to add this to the php container : https://docs.datadoghq.com/tracing/trace_collection/dd_libraries/php/?tab=otherenvironments

And add DD_AGENT_HOST: datadog to the environment variables of the container so it could detect the host.