https://github.com/lefred/mysql-component-disksize
MySQL Component to display disksize
https://github.com/lefred/mysql-component-disksize
Last synced: 6 months ago
JSON representation
MySQL Component to display disksize
- Host: GitHub
- URL: https://github.com/lefred/mysql-component-disksize
- Owner: lefred
- License: gpl-2.0
- Created: 2023-02-02T22:38:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T19:47:57.000Z (over 2 years ago)
- Last Synced: 2024-12-29T21:27:14.666Z (over 1 year ago)
- Language: C++
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mysql-component-disksize
MySQL component for FOSDEM MySQL & Friends Devroom
See https://speakerdeck.com/lefred/extending-mysql-with-the-component-infrastructure
## Usage
```
mysql> install component "file://component_disksize";
mysql> select * from performance_schema.disks_size;
+-----------------+-----------------------------+-------------+-------------+
| DIR_NAME | RELATED_VARIABLE | FREE_SIZE | TOTAL_SIZE |
+-----------------+-----------------------------+-------------+-------------+
| /var/lib/mysql | log_bin_basename | 16416055296 | 31630573568 |
| /var/lib/mysql/ | datadir | 16416055296 | 31630573568 |
| /tmp | tmpdir | 16416055296 | 31630573568 |
| ./ | innodb_undo_directory | 16416055296 | 31630573568 |
| ./ | innodb_log_group_home_dir | 16416055296 | 31630573568 |
| ./#innodb_temp/ | innodb_temp_tablespaces_dir | 16416055296 | 31630573568 |
| /tmp | replica_load_tmpdir | 16416055296 | 31630573568 |
+-----------------+-----------------------------+-------------+-------------+
7 rows in set (0.00 sec)
```