Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinba-server/pinba-server
simple and fast pinba server with storage in clickhouse
https://github.com/pinba-server/pinba-server
clickhouse grafana php pinba pinbaserver server swoole workerman
Last synced: about 1 month ago
JSON representation
simple and fast pinba server with storage in clickhouse
- Host: GitHub
- URL: https://github.com/pinba-server/pinba-server
- Owner: pinba-server
- Created: 2019-04-07T17:25:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T09:07:34.000Z (about 2 years ago)
- Last Synced: 2024-10-31T17:23:02.282Z (about 1 month ago)
- Topics: clickhouse, grafana, php, pinba, pinbaserver, server, swoole, workerman
- Language: PHP
- Homepage: https://github.com/pinba-server/pinba-server
- Size: 979 KB
- Stars: 74
- Watchers: 2
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-clickhouse - pinba-server/pinba-server - Pinba-server is a simple and fast metrics server for PHP applications that stores data in ClickHouse. (Integrations / Metrics and Monitoring)
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
- publications: [reddit(en)](https://www.reddit.com/r/PHP/comments/bigszu/statistics_and_monitoring_of_php_scripts_in_real/), [habr(ru)](https://habr.com/ru/post/444610/)
- the installation of ClickHouse, pinba-server, pinba module for php and nginx on [Ubuntu 18.04 LTS](https://github.com/pinba-server/pinba-server/blob/master/docker/ubuntu18.04/Dockerfile) and [Centos 7](https://github.com/pinba-server/pinba-server/blob/master/docker/centos7/Dockerfile).##### Grafana
dashboard [#10011](https://grafana.com/dashboards/10011)![grafana_dashboard.png](https://raw.githubusercontent.com/pinba-server/pinba-server/master/grafana_dashboard.png)
##### License
MIT License.##### See also
- [ClickHouse-Ninja/Proton](https://github.com/ClickHouse-Ninja/Proton) - golang version of pinba-server for clickhouse
- [olegfedoseev/pinba-influxdb](https://github.com/olegfedoseev/pinba-influxdb) - golang version of pinba-server for influxdb
- [nginxhouse](https://github.com/nginxhouse/nginxhouse) - nginx logs visualizer