Comments - MONyog Table Alert
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
So when we are inserting data into a particular table the max limit to insert the data is 4.6 GB after that it starts giving errors. We want alerts when a particular table is reaching this limit so that we can take the necessary actions. Alert condition should be to monitor the table size and display the value of it.
You can create a Custom SQL Object (CSO) in MONyog to monitor the table size of a particular table. You may use the below query to create a CSO,
SELECT table_name AS `Table`, round(((data_length + index_length) / 1024 / 1024), 2) `Size_in_MB` FROM information_schema.TABLES WHERE table_schema = "$DB_NAME" AND table_name = "$TABLE_NAME";
Please specify the database_name and table_name you would wish to monitor in place of ‘$DB_NAME’ and ‘$TABLE_NAME’ in the above query.
You may also create a CSC for the above CSO and use the below javascript, please ensure you write the CSO name in place of '<name of the CSO>' in the below query,
You may refer our documentation on creating new CSO and CSC (Custom SQL Counter for the new CSO), here >> http://monyogkb.webyog.com/article/67-new-csos-and-cscs
You may write to support@webyog.com if you have any queries in MONyog. Sibin (Webyog)