Question
I was executing following command
mysqladmin ext -i1 -c3600
It produces valuable output but I want to use the output to plot graphs so that I can visualize inserts, updates, buffer and other stuff.
Anyone has any idea on how to use the output to plot graphs ?
Solution
There are values that you need to graph with absolute values, such as
There are also values whose delta needs to be calculated and graphed, such as
- Queries
- Com_select
- Com_delete
- Com_update
- etc ...
- Incoming and Outgoing Traffic
You should consider using Nagios XI or MONyog to do all that for you.
If you want to be a hero, use Google Charts
- Google Chart API - A Real World Example
- Sample Chart You Need to Craft in a Bash Script Using the Deltas and Absolute Values
I used Google Chart a few times and got away from it. It does work, but you have a lot of coding to store the absolute values and calculate deltas for specific variables. Then, you script the URL from the values and render the URL in a browser.