MySQL 9.1.0
Source Code Documentation
Service Introduction

This service is named mysql_server_telemetry_metrics_v1 and it exposes the set of methods to:

  • discover (iterate) registered meters (metric groups)
  • discover (iterate) metrics exposed within some meter
  • get measurement values for a given metric
  • mark start/end of metric export process

Service interface supports dynamic meter/metric data discoverability. The interface does not provide configurability, all methods only provide read-only data access.

As an alternative to this interface, the same data is being exported in the following tables within the performance_schema database:

  • setup_meters
  • setup_metrics

These tables allow for configurability, so to configure the telemetry metrics export, i.e. define:

  • what meters should be exported (meter ENABLED state)
  • how frequently should each meter be exported (meter FREQUENCY state)

DB admin should modify (via SQL) these fields within the performance_schema.setup_meters table.