How do I know the usage of storage on managed database?
I'm using managed database. I want to get notified when the storage is running low. How can I know if there are enough free space or not?
✓ Best Answer
MySQL/MariaDB keep information like this within the database itself in the *_schema tables. These are queryable by users with the proper credentials. These tables are well-documented.
You will probably have to do some math on the raw query results to get what you want.
Here's an example relative to (what I perceive was) your specific request:
You'll have to the notification part yourself…