zwp/monitor

This is a PHP performance monitoring extension

1.0.0 2020-04-12 06:21 UTC

This package is auto-updated.

Last update: 2022-05-12 16:58:28 UTC


README

This is a PHP performance monitoring extension

example

require 'vendor/autoload.php';

\Zwp\Monitor\ExampleMonitor::instance()->start();
sleep(1);
\Zwp\Monitor\ExampleMonitor::instance()->terminal();

// monitor中可指定监控对象、权重、超时时间与超时日志形式、UDP上报配置等
// 不同的monitor会分类收集到Counter中最后一次性通过UDP上报,可用于grafana