nickfan/mysql-space-exporter
mysql space exporter: Tracking down the source of capacity reduction
25
MySQL Space Exporter is a Prometheus exporter designed to monitor the space usage of MySQL tables. It provides insights into the growth trends of database tables by exporting key metrics.
information_schema.tables
table in MySQL.DB_HOST
: MySQL host address (default: localhost)DB_PORT
: MySQL host port (default: 3306)DB_USER
: MySQL usernameDB_PASSWD
: MySQL passwordSERVER_PORT
: Exporter port (default: 9107)ENABLE_LOGGING
: Enable logging (default: false)OUT_LIMIT
: Limit on the number of monitored tables (default: 200)SORT_FIELD
: Field to sort by (default: TOTAL_SIZE)SORT_ORDER
: Sort order (default: DESC)DB_FILTER
: Comma-separated list of databases to filterTABLE_FILTER
: Comma-separated list of tables to filterdocker pull nickfan/mysql-space-exporter