miketheman / heroku-buildpack-datadog

Heroku Buildpack to run Datadog DogStatsD in a Dyno
http://miketheman.github.io/heroku-buildpack-datadog
MIT License
55 stars 35 forks source link

Breaks `heroku ps:exec` #34

Open msiebuhr opened 7 years ago

msiebuhr commented 7 years ago

When using the new heroku ps:exec-feature to SSH into a running dyno, no environment variables are set, so when the scripts in profile.d/ is sourced, the shell exits without getting to the interactive login.

> heroku ps:exec --app foobar
Establishing credentials... done
Connecting to web.1 on ⬢ foobar...
DATADOG_API_KEY environment variable not set. Run: heroku config:add DATADOG_API_KEY=<your API key>%
>

Patch at https://github.com/tactileentertainment/heroku-buildpack-datadog/commit/a07f98aeb2ced6215584c4eeb6de62611400e522 :

> heroku ps:exec --app foobar
Establishing credentials... done
Connecting to web.1 on ⬢ foobar...
DATADOG_API_KEY environment variable not set. Run: heroku config:add DATADOG_API_KEY=<your API key>
DATADOG_HOST_NAME nor HEROKU_APP_NAME environment variable set. Run: heroku apps:info|grep ===|cut -d' ' -f2
Some required keys are missing, not starting the agent.
~ $