Skip to content
This repository was archived by the owner on Dec 2, 2018. It is now read-only.

Is integration with Heroku add-ons possible to collect data from them? #19

Open
imochurad opened this issue Sep 29, 2016 · 7 comments
Open
Labels

Comments

@imochurad
Copy link

I have a java Heroku app that is utilizing a bunch of other services (Heroku add-ons). Like Redis, Cassandra, Kafka to name a few and I wanted to use Data Dog to collect health metrics and configure alerts if there are signs that my app becomes unhealthy. With your build pack, is that possible to configure integrations with the mentioned above add-ons? If so, could you please provide some details and/or examples? Reply would be appreciated.

@miketheman
Copy link
Owner

Hello @imochurad !

As can be seen in the startup script we run a specialized version of one of the Agent's components - the statsd listener - to allow apps to emit statsd messages to be sent to the platform.

This approach doesn't run the Agent as a collector for other sources like external databases - this would likely involve a more complex configuration and process runner approach.
This might be something valuable for a standalone Dyno, not so applicable to a buildpack that is part of the application layer.

@tatey
Copy link

tatey commented Sep 29, 2016

An alternative approach would be to setup a log drain for your app that parses runtime-metric logs and forwards them to Datadog.

@miketheman
Copy link
Owner

@tatey Cool idea! I don't see if the runtime-metrics provide insight into the add-ons, can you share how that's done?

@tatey
Copy link

tatey commented Sep 30, 2016

If you're using the standard or premium tiers of Postgres and Redis you should see log entries for these addons in your app logs. I am not sure about Kafka, but given it's now a first class on Heroku, I imagine it's similar.

@tatey
Copy link

tatey commented Sep 30, 2016

I actually open sourced an implementation of this idea last week in Ruby. It uses this very buildpack, so thanks!

@imochurad
Copy link
Author

@tatey how do you parse a log drain?

@tatey
Copy link

tatey commented Sep 30, 2016

@imochurad Heroku have a pretty good article on how Log Drains work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants