pinba_extension
pinba_extension copied to clipboard
how to use it ?
i want to know how to use it in my php project ? and it must require pinba_engine is installed in mysql....?
In order to use this, you will have to set up 3 things:
- the php extension which sends perf data to the server (let's call this ext-pinba)
- a pinba server, which is a mysql db with the pinba "plugin" installed
- a system/tool which will extract/summarize the data from the db and present it as nice graphs
For point 1, an easy installation is to use the php packages coming with your linux distro, if there are any available. For point 2, you can use a Docker container, of either this project or from the Pinba2 project. For point 3, check out https://github.com/intaro/pinboard, https://github.com/pinba-server/pinba-server or https://github.com/ClickHouse-Ninja/Proton
Note that, if you can not easily install the php extension at point 1, there is a pure-php implementation available of the same API at https://github.com/gggeek/pinba_php
In order to use this, you will have to set up 3 things:
- the php extension which sends perf data to the server (let's call this ext-pinba)
- a pinba server, which is a mysql db with the pinba "plugin" installed
- a system/tool which will extract/summarize the data from the db and present it as nice graphs
For point 1, an easy installation is to use the php packages coming with your linux distro, if there are any available. For point 2, you can use a Docker container, of either this project or from the Pinba2 project. For point 3, check out https://github.com/intaro/pinboard, https://github.com/pinba-server/pinba-server or https://github.com/ClickHouse-Ninja/Proton
Note that, if you can not easily install the php extension at point 1, there is a pure-php implementation available of the same API at https://github.com/gggeek/pinba_php
thanks very much