Overview

This guide provides instructions on how to use our sample repository to run the New Relic agent as an Aptible container and collect custom database metrics. The sample repository can be found at Aptible’s New Relic Metrics Example.

By following this guide, you will be able to deploy the New Relic agent alongside your database and collect database-specific metrics for monitoring and analysis.

New Relic

The example repo demonstrates how to configure the New Relic Agent to monitor PostgreSQL databases hosted on Aptible and report custom metrics to your New Relic account. However, the Agent can also be configured to collect database-specific metrics for the following database types:

The example repo already installs the packages for the above database types, so the configuration file would just need to be added for each specific database type needing to be monitored, based on using the example in the above New Relic repo links.

Troubleshooting

  • No metrics appearing in New Relic: Verify that your NEW_RELIC_LICENSE_KEY is correct and that the agent is running. Use aptible logs or a Log Drain to inspect logs from the agent to see if there are any specific errors blocking delivery of metrics.
  • Connection issues: Ensure that the database connection URL is accessible from the Aptible container. In Aptible’s platform, the agent must be running in the same Stack as the Aptible database(s) being monitored.