Monitoring with Datadog

We’d like to monitor our Metabase instance. Ideal metrics could include:

  • SQL query duration
  • SQL result row count
  • HTTP response code count
  • HTTP response size in bytes
  • etc.

Can we get these metrics from Metabase?

Ideally we’ll send these to Datadog (where we monitor everything else). So if they are available through a Prometheus endpoint, or a statsd client, or exported via JMX, then that would work.

Thank you!


After reading core.clj and middleware.clj, looks like our best bet might be parsing the Metabase logs:

I don’t see any existing metrics code, or any way to enable metabase or embedded jetty metrics with an env var.

We’d prefer to not parse the logs because the format may change in future versions and it wasn’t intended for machine consumption.

Please let us know if there’s another way!

Since Metabase doesn’t export metrics, our plan now is…

1 Like