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

What to pass in as host for DataDogDClient? #3

Closed gautam-soni closed 9 years ago

gautam-soni commented 9 years ago

Sorry, I just updated on the other thread. My question is, I use com.timgroup.statsd.NonBlockingStatsDClient in my app to push my metrics, but I dont know the host:port on which to setup this connection. I got DataDog started alongside my dyno, by using this buildpack. The port I believe would be 18125, but what to pass in as host. As you said, I should pick it up from env variable, but which one?

miketheman commented 9 years ago

@gautam-soni thanks for digging further. The dogstatsd service should be started on port 8125 on localhost.

Did you find the port 18125 somewhere in the notes/docs? That's likely a mistake.

Here's an example connection string for a Ruby app: https://github.com/miketheman/buildpack-example-ruby/blob/master/app.rb#L6

miketheman commented 9 years ago

@gautam-soni Never heard back from you here. If you have more details, pleas reopen with them.