I'm interesting in how i can monitor which request on which URL creates high load on database(mysql) and php scripts. Now i use zabbix(2.4), but i cannot find something what can me help with this. Maybe anybody can advise me some tools, ideas for scripts or maybe another monitoring system for this goal? I've seen that NewRelic have such this functionality, but it's too expensive for me.
P.S. It's not enough for me
I would do the following things:
Logging for mysql slow queries http://dev.mysql.com/doc/refman/5.7/en/slow-query-log.html. It is rather intensive, so only enable it brieflly-watch out for performance issues.
If you use memcache look into that, if you don't then you probably should be using it anyway for performance reasons.
Pinba fully meets my objective. The reports take away by the bash script, and then will draw graphs in zabbix.