How to make metrics from my MySQL/MariaDB database?

Hi everybody,

I want to use Grafana for make monitoring to my database metrics but I don’t know how to do that (I tried to find on Google and forum but no possible to find what exactly I want).

My wish is to create some metrics from different query to see how the tables grow up.

By sample, I have one table named “USERS” contenants my all users (past and futher) but I want to make some graph about how many.

I just don’t know (or don’t understand) how to making metrics about that (by sample, every 5 sec get how many USERS are created (depends my query) for add this number to one database for Grafana.

Can you help me to try to understand how to do that?

Thank you very much,