Property

mysqld_exporter

Prometheus MySQL exporter (mysqld_exporter). The crawler reads its /metrics page, which doesn't require authentication, for the version of the exporter and of the MySQL or MariaDB server it monitors. Depending on the enabled collectors the metrics also name the databases and tables of the server; the system databases (mysql, information_schema, performance_schema, sys) are left out.

Property Name Type Description Required
databases array of MysqldExporterDatabase Databases and their tables, sorted by name. At most 100 databases, 200 tables per database and 1000 tables in total.
innodb_version string Version of the InnoDB storage engine.
mysql_up boolean Whether the exporter could connect to the MySQL server.
mysql_version string Version of the MySQL or MariaDB server, ex: 10.11.8-MariaDB-ubu2204
mysql_version_comment string Version comment of the MySQL or MariaDB server, ex: MySQL Community Server - GPL
truncated boolean Set when there were more databases or tables than the limits.
version string Version of the exporter, ex: 0.15.1

MysqldExporterDatabase

Property Name Type Description Required
name string Name of the database (schema). Yes
tables array of MysqldExporterTable Tables of the database that the exporter publishes metrics for, sorted by name. Yes

MysqldExporterTable

Property Name Type Description Required
name string Name of the table. Yes
rows integer Approximate number of rows in the table. Only available when the exporter collects info_schema.tables.
size integer Size of the table data and indexes in bytes. Only available when the exporter collects info_schema.tables.



↑ TopSearch Queries
SearchMySQL exporters
product:"Prometheus MySQL Exporter"
SearchMySQL exporters with a compromised database
product:"Prometheus MySQL Exporter" tag:compromised

↑ TopExample
{
    "version": "0.15.1",
    "mysql_up": true,
    "mysql_version": "8.0.36",
    "mysql_version_comment": "MySQL Community Server - GPL",
    "innodb_version": "8.0.36",
    "databases": [
        {
            "name": "shop",
            "tables": [
                {"name": "customers", "rows": 1520, "size": 409600},
                {"name": "orders", "rows": 8312, "size": 1589248}
            ]
        }
    ]
}