DataDog / docker-compose-example

## Auto-archived due to inactivity. ## A working example of using Docker Compose with Datadog
MIT License
122 stars 202 forks source link

Wrong API_KEY env var name in example? #8

Closed joeldodge79 closed 6 years ago

joeldodge79 commented 6 years ago

https://github.com/DataDog/docker-compose-example/blob/95d529717070a0dab0f5f53a923476f64f02b254/docker-compose.yml#L23

should this be DD_API_KEY instead of API_KEY? docker logs had this and it started working when I switched the env var name

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-check-apikey.sh: executing...

==================================================================================
You must set an DD_API_KEY environment variable to run the Datadog Agent container
==================================================================================

[cont-init.d] 01-check-apikey.sh: exited 1.
jyee commented 6 years ago

Yes, API_KEY was the old env var and deprecated. The example has been updated, thanks to @dabcoder!