You can install and configure the NRDOT Collector for MySQL monitoring using the New Relic CLI. The CLI installs the collector, creates the monitoring user, and configures the collector in a single command.
ヒント
To install this through the New Relic UI instead, go to one.newrelic.com > Integrations & Agents > MySQL (OpenTelemetry) . Follow the on-screen instructions to set up the integration.
Prerequisites
- A New Relic account with a valid license key.
- A New Relic account ID.
- MySQL 5.7 or later.
- A Linux collector host running Debian/Ubuntu or RHEL/CentOS, with
curlandsystemdinstalled, and themysqlclient available. - For self-hosted MySQL: administrative access to your MySQL server (the
rootaccount or equivalent). - For AWS RDS/Aurora MySQL: network connectivity from the collector host to the RDS endpoint (inbound access on the MySQL port in the RDS security group), and the RDS master username and password.
- Network connectivity to the New Relic OTLP endpoint for your region.
For detailed requirements, refer to Compatibility and prerequisites.
Install and configure the NRDOT Collector
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.
To confirm data is arriving, run this query in the query builder:
SELECT count(*) FROM MetricWHERE metricName LIKE 'mysql.%'AND instrumentation.provider = 'opentelemetry'SINCE 10 minutes agoRelated documentation
Introduction to MySQL monitoring with NRDOT
Learn about all the available installation methods for MySQL monitoring with New Relic.
Ansible install
Learn how to install and configure MySQL monitoring at scale with the newrelic.newrelic_install Ansible role.
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.
Docker install
Learn how to run the NRDOT Collector as a sibling container to a MySQL instance already running in Docker.