PHP code example of zwp / monitor
1. Go to this page and download the library: Download zwp/monitor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zwp / monitor example snippets
\Zwp\Monitor\ExampleMonitor::instance()->start();
sleep(1);
\Zwp\Monitor\ExampleMonitor::instance()->terminal();
// monitor中可指定监控对象、权重、超时时间与超时日志形式、UDP上报配置等
// 不同的monitor会分类收集到Counter中最后一次性通过UDP上报,可用于grafana