pinba_extension icon indicating copy to clipboard operation
pinba_extension copied to clipboard

how to use it ?

Open hufeng903 opened this issue 7 years ago • 2 comments

i want to know how to use it in my php project ? and it must require pinba_engine is installed in mysql....?

hufeng903 avatar Mar 20 '17 08:03 hufeng903

In order to use this, you will have to set up 3 things:

  1. the php extension which sends perf data to the server (let's call this ext-pinba)
  2. a pinba server, which is a mysql db with the pinba "plugin" installed
  3. 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

gggeek avatar Dec 06 '22 08:12 gggeek

In order to use this, you will have to set up 3 things:

  1. the php extension which sends perf data to the server (let's call this ext-pinba)
  2. a pinba server, which is a mysql db with the pinba "plugin" installed
  3. 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

hufeng903 avatar Jan 13 '23 01:01 hufeng903