One data point which is very helpful but surprisingly few people have is the history of the table sizes. Projection of data growth is very important component for capacity planning and simply watching the growth of space used on partition is not very helpful.
Now as MySQL 5.0+ has information schema collecting and keeping this data is very easy:
PLAIN TEXT SQL:
- CREATE DATABASE stats;
- USE stats;
- CREATE TABLE `tables` (
- `DAY` date NOT NULL,
- `TABLE_SCHEMA` varchar(64) NOT NULL DEFAULT '',
- `TABLE_NAME` varchar(64) NOT NULL DEFAULT '',
- `ENGINE` varchar(64) DEFAULT NULL,
- `TABLE_ROWS` bigint(21) UNSIGNED DEFAULT NULL,
- `DATA_LENGTH` bigint(21) UNSIGNED DEFAULT NULL,
- `INDEX_LENGTH` bigint(21) UNSIGNED DEFAULT NULL,
- `DATA_FREE` bigint(21) …