MySQL 26.10 Reference Manual Including MySQL NDB Cluster 26.10

7.5.11 Health Monitor Component

The Health Monitor component monitors host resources used by MySQL. The Health Monitor provides the following kinds of resource information:

Important

Health Monitor is fully supported on Linux platforms and partially supported on MacOS. It is not currently supported on Windows platforms.

MacOS supports basic filesystem monitoring, host memory and CPU measurements. Disk forecasting is not supported on MacOS.

For installation instructions, see Section 7.5.1, “Installing and Uninstalling Components”.

To confirm installation, run the following to list all the available system variables:

SHOW GLOBAL VARIABLES LIKE 'health_monitor.%';
  

Disk and memory health tables are sampled according to their respective sample-rate variables. Their maximum number of rows is the retention interval divided by the sample interval. When a sampled table reaches its maximum size, the oldest rows are discarded.

All Health Monitor system variables are global and dynamic. Changing a collector setting restarts the affected collector.

Changing these variables requires the SYSTEM_VARIABLES_ADMIN privilege.

Each collector can be started or stopped independently. For example:

SET GLOBAL health_monitor.disk_running = ON;
SET GLOBAL health_monitor.memory_running = ON;
SET GLOBAL health_monitor.system_running = ON;
  

To stop a collector, set the variable to OFF.