pinba-server/pinba-server

simple pinba server with storage in clickhouse/loki

1.0.2 2019-04-09 16:59 UTC

This package is not auto-updated.

Last update: 2024-04-17 20:17:13 UTC


README

Requirements
  • php
  • clickhouse
Installation
  • cd /opt
  • git clone https://github.com/pinba-server/pinba-server.git
  • cd pinba-server
  • php composer.phar install
  • clickhouse-client -n < clickhouse/pinba.requests.sql
Usage
  • php workerman_clickhouse.php start -d
  • php workerman_clickhouse.php stop
Systemd autostart script
  • sudo cp systemd/pinba-server.service /usr/lib/systemd/system/pinba-server.service
  • sudo systemctl daemon-reload && systemctl enable pinba-server && systemctl start pinba-server
Stats for 24 hours with about 10 RPS on php-fpm and 450 RPS on nginx:
table rows size, Mb description
requests 1kk 26 raw data
report_by_all 56k 2 aggregated data by minutes
nginx_requests 45kk 0 raw data, engine=null
nginx_report_by_all 300k 9 aggregated data by minutes
Info
Grafana

dashboard #10011

grafana_dashboard.png

License

MIT License.

See also