You can install and configure the NRDOT Collector for MySQL monitoring using the newrelic-install Chef cookbook. The cookbook installs the collector, creates the monitoring user, 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.
- MySQL 5.7 or later.
- Chef 15 or later.
- A Linux collector host running Debian/Ubuntu or RHEL/CentOS.
- For self-hosted MySQL: administrative access to your MySQL server (the
rootaccount 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.
Download the Chef cookbook
Download the newrelic-install Chef cookbook from the Chef Supermarket to your chef-repo directory:
$knife supermarket install newrelic-installReplace 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:
$knife cookbook upload newrelic-installUpdate 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 MySQL database monitoring through the New Relic UI.
To find your MySQL database entity in New Relic:
- Go to one.newrelic.com > All capabilities > Databases.
- From the Entity type dropdown, select MySQL instance, then click Apply.
- Select your MySQL database from the list of entities.
Related documentation
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.
Ansible install
Learn how to install and configure MySQL monitoring at scale with the newrelic.newrelic_install Ansible role.
Helm chart install
Learn how to install and configure MySQL monitoring on Kubernetes with the mysql-otel Helm chart.