• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

MySQL metrics and events reference

|View as Markdown

Monitor your MySQL database performance with comprehensive metrics collected by the NRDOT Collector. By default, New Relic collects the metrics and query-level events referenced in the Default metrics and events section. You can enhance your monitoring by enabling your desired metrics listed in the Full-feature metrics section.

Default metrics and events

Query events

The following events are collected as OpenTelemetry log records and are enabled by default. They provide query-level visibility.

Full-feature metrics

The full-feature configuration collects every default metric plus the following additional metrics. These metrics are organized by functionality and most require a direct MySQL connection. You can set any of these metrics to true in the metrics section of your configuration to enable them.

Timer units

Telemetry type

Fields

Unit

Log events (query_sample, top_query)

sum_timer_wait, events_statements_current.timer_wait, events_waits_current.timer_wait

seconds

Metrics (statement events, table/index I/O wait, table lock wait)

per metadata.yaml unit: ns

nanoseconds

Important

mysql.events_waits_current.timer_wait is the one field that is a genuine, distinct wait/block duration (not total elapsed time). Pair it with mysql.wait_event_type / mysql.wait_event (or the raw mysql.wait_type).

Attribute glossary

The following table describes every attribute referenced in the metric descriptions above. Attributes whose meaning depends on the metric they're attached to (such as kind, operation, status, and command) aren't listed here; their specific values are called out inline next to each metric instead.

Instrumentation in self-hosted environments

Learn how to set up MySQL monitoring in self-hosted environments with New Relic.

Instrumentation in RDS environments

Learn how to set up MySQL monitoring in RDS environments with New Relic.

Troubleshooting guide

Learn how to troubleshoot common issues with MySQL monitoring.

Copyright © 2026 New Relic Inc.

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