walkor / workerman-statistics Goto Github PK
View Code? Open in Web Editor NEW一个分布式统计监控系统 包含PHP客户端 、服务端
License: MIT License
一个分布式统计监控系统 包含PHP客户端 、服务端
License: MIT License
为什么不直接去读文件,而是通过tcp后再去读数据文件进行处理?
成功曲线的统计和调用总次数一致,是不是文案的问题?
我的项目一共调用151次,成功53次,但是成功曲线显示的是151次
監控項目多的話,無法立刻定位問題在那
要如何設定可以有 top10 的功能...?
202a203,206
// init statistic
if (!isset(\Statistics\Lib\Cache::$statisticDataCache['statistic'][$ip])) {
\Statistics\Lib\Cache::$statisticDataCache['statistic'] = array();
}
222c226
$time_line = ceil($time_line/300)*300;
$time_line = intval(ceil($time_line/300)*300);
232,235c236,239
$st_data[$time_line]['suc_count'] += $suc_count;
$st_data[$time_line]['suc_cost_time'] += $suc_cost_time;
$st_data[$time_line]['fail_count'] += $fail_count;
$st_data[$time_line]['fail_cost_time'] += $fail_cost_time;
$st_data[$time_line]['suc_count'] += intval($suc_count);
$st_data[$time_line]['suc_cost_time'] += intval($suc_cost_time);
$st_data[$time_line]['fail_count'] += intval($fail_count);
$st_data[$time_line]['fail_cost_time'] += intval($fail_cost_time);`
我对这个很统计上报很感兴趣,我看是文件系统存储的,有性能测试么,是否考虑用mysql或者什么替换掉存储部分?
客户端这边有java,可否提供一个java的client,谢谢
curl -Ss http://www.workerman.net/check.php | php
PHP Version >= 5.3.3 [OK]
Extension pcntl check [OK]
Extension posix check [OK]
php start.php start -d
Please install pcntl extension. See http://doc3.workerman.net/install/install.html
php -m | grep pcntl
pcntl
php -v
PHP 7.1.10 (cli) (built: Oct 1 2017 22:42:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.10, Copyright (c) 1999-2017, by Zend Technologies
可能是什么原因?
服务重启之后之前的数据都没有。如果我想保留的话需要怎么改?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.