For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

MySQL memory monitoring

The Cennso Database extension provides rich capabilities for monitoring the database instances deployed and managed by it. The database metrics exported by the Prometheus mysqld exporterOpens in a new tab might be insufficient to troubleshoot problems with high memory consumption. In this case, you can add new metrics based on custom SQL queries.

One of the most useful source to understand what part of a MySQL instance consumes a lot of memory, can be the memory_summary_global_by_event_nameOpens in a new tab table from the performance_schemaOpens in a new tab database.

Note

To have access to this table, the performance_schema must be enabled in your database instance. To check if it is enabled, use the following SQL statement:

sql

The result must look like this:

text

If it is disabled (the value is 0), you can enable it by adding performance_schema=ON configuration to the spec.mysql.additionalConfiguration.

You can build a custom metric mysql_memory_by_event_current_bytes using the following configuration of the mysqld-exporter:

yaml

After this metric is enabled in your Cennso Database extension deployment, you can add the following promqlOpens in a new tab query to the official dashboard of the Cennso Database extension:

promql