• /
  • EnglishEspañolFrançais日本語한국어Português
  • EntrarComeçar agora

Install & configure NRDOT for MySQL monitoring with Ansible

|View as Markdown (English)

You can install and configure the NRDOT Collector for MySQL monitoring using the newrelic.newrelic_install Ansible role. The role installs the collector, creates the monitoring user, and configures the collector in a single play.

Prerequisites

  • A New Relic account with a valid license key.
  • A New Relic account ID.
  • MySQL 5.7 or later.
  • Ansible Core 2.13 or 2.14, Python 3.10, and the ansible.windows and ansible.utils collections.
  • A Linux collector host running Debian/Ubuntu or RHEL/CentOS.
  • For self-hosted MySQL: administrative access to your MySQL server (the root account or equivalent), using password-based authentication.
  • For MySQL 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 and prerequisites.

Install the role

bash
$
ansible-galaxy install newrelic.newrelic_install

Make sure the required collections are also installed:

bash
$
ansible-galaxy collection install ansible.windows ansible.utils

Configure the playbook

Run the playbook

bash
$
ansible-playbook -i <inventory_file> <playbook_file>.yml

Find and use your data

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

To find your MySQL database entity in New Relic:

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

Introduction to MySQL monitoring with NRDOT

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

CLI install

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

Chef install

Learn how to install and configure MySQL monitoring at scale with the newrelic-install Chef cookbook.

Helm chart install

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

Copyright © 2026 New Relic Inc.

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