New Relic quickstart
This quickstart guide will help you get started monitoring your Crunchy Bridge database with New Relic. We recommend you start with the Container Apps Quickstart to get a general understanding of Container Apps.
New Relic with container apps Quickstart
First, make sure you have Container Apps enabled. As a user with superuser
privileges, run CREATE EXTENSION pgpodman; to install the extension in the
postgres database of the desired cluster.
Next, locate your license key from New Relic to include in the command to start the container.
To start the New Relic collector, run the following using your own value for
NRIA_LICENSE_KEY:
BEGIN;
-- prevent logging of the SELECT run_container() call
SET LOCAL pgaudit.log = 'none';
SET LOCAL log_min_error_statement = 'PANIC';
SET LOCAL log_statement = 'none';
SET LOCAL log_min_duration_statement = -1;
SELECT run_container('-dt -p 5433:5433 -e NRIA_LICENSE_KEY="your-NRIA-license-key" --privileged docker.io/newrelic/infrastructure:latest');
COMMIT;
The collector should immediately begin sending data to New Relic. Visit the New Relic documentation for more details on the New Relic collector.