statshow is a simple API monitoring server, used by statstics monitoring project
require dirname ( __FILE__ ). ' /vendor/autoload.php ' ;
$ server = new statshow StatShow ( ' 0.0.0.0 ' , 8081 );
$ server -> start ();
Highcharts chart display
A relatively easy-to-use third-party data retrieval
https://cloud.tencent.com/document/product/614/47044
https://cloud.tencent.com/document/product/614/56447 https://cloud.tencent.com/document/product/614/47044
| select uri,histogram (cast ( TIMESTAMP as timestamp) ,interval 1 minute) as analytic_time, count (*) as log_count group by uri order by analytic_time limit 1000
| select uri, count (*) as log_count group by uri order by log_count desc limit 1000
| select remote_addr, count (*) as log_count group by remote_addr order by log_count desc limit 1000
| select remote_addr,ip_to_city(remote_addr),uri, count (*) as log_count group by remote_addr,uri order by log_count desc
| select uri,remote_addr,count (*) as log_count group by uri,remote_addr order by log_count desc