5

I have a Postgres dyno on Heroku and I use Datadog.

Two postgres dashboards are by default on Datadog: Metrics and Overview.

Metrics is working (CPU usage, memory, I/O,...) but Overview is not (deadlocks, indexes usages)

Are Heroku Postgres dyno and Datadog fully compatible?

2
  • Did you manage to solve this? Commented Feb 1, 2021 at 10:35
  • Could you give more information about your database on heroku. Is it as an addon for another service? Commented May 6, 2021 at 14:58

1 Answer 1

0

There are a number of ways you can get metrics out of the box into datadog for your application or service.

Assuming you are using a backend service since you described postgres, you can use one of the many datadog dependencies. One such for node applications i use is dd-trace, it has a number of different plugins for postgres (connections using the pg library) out of the box. Although these give you a lot of metrics about querys ran and help identify application level bottlenecks, you will need to do additional work to get other things like deadlocks, indexes usages, and connected users into datadog. Two main ways to go about this,

  • create a custom metric and query the db from the application using dd-trace mentioned above
  • use a custom build pack to launch a separate datadog agent on heroku, this runs another thing along side the applicaton in the heroku instance whose soul purpose is to port metrics.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.