• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

Install & configure NRDOT for PostgreSQL monitoring with Chef

|View as Markdown (English)

You can install and configure the NRDOT Collector for PostgreSQL monitoring using the newrelic-install Chef cookbook. The cookbook installs the collector, creates the monitoring role and its grants, and configures the collector when you run the newrelic-install::default recipe.

Prerequisites

  • A New Relic account with a valid license key.
  • A New Relic account ID.
  • PostgreSQL 14 or later.
  • Chef 15 or later.
  • A Linux collector host running Debian/Ubuntu or RHEL/CentOS.
  • pg_stat_statements must be loaded via shared_preload_libraries, which requires a database restart. Put the server-level prerequisites in place before running the recipe.
  • For self-hosted PostgreSQL: administrative access to your PostgreSQL server (the postgres superuser or equivalent), with a password set and pg_hba.conf permitting password-based host authentication.
  • For PostgreSQL or Aurora on AWS RDS: network connectivity from the collector host to the RDS endpoint, and the RDS master username and password.
  • Network connectivity to New Relic OTLP endpoint for your region.

For detailed requirements, refer to Compatibility.

Download the Chef cookbook

Download the newrelic-install Chef cookbook from the Chef Supermarket to your chef-repo directory:

bash
$
knife supermarket install newrelic-install

Replace the default attributes

Replace the default attributes in attributes/default.rb with your account details:

Upload the Chef cookbook

Upload the newrelic-install Chef cookbook to your Chef server:

bash
$
knife cookbook upload newrelic-install

Update the run list

Add the newrelic-install recipe to the run list of a node:

"run_list": [
"recipe[newrelic-install]"
]

Find and use your data

Once your data is being collected, you can access comprehensive PostgreSQL database monitoring through the New Relic UI.

To find your PostgreSQL database entity in New Relic:

  1. Go to one.newrelic.com > All capabilities > Databases.
  2. From the Entity type dropdown, select PostgreSQL instance, then click Apply.
  3. Select your PostgreSQL database from the list of entities.

Introduction to PostgreSQL monitoring with NRDOT

Learn about all the available installation methods for PostgreSQL monitoring with New Relic.

CLI install

Learn how to install and configure PostgreSQL monitoring with a single New Relic CLI command.

Ansible install

Learn how to install and configure PostgreSQL monitoring at scale with the newrelic.newrelic_install Ansible role.

Helm chart install

Learn how to install and configure PostgreSQL monitoring on Kubernetes with the postgresql-otel Helm chart.

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.