dev-master
9999999-devGeneric metrics, PHP Style.
Apache-2.0
The Requires
- php ~7.1
The Development Requires
0.1.0
0.1.0.0Generic metrics, PHP Style.
Apache-2.0
The Requires
- php ~7.1
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Generic metrics, PHP Style.
Warning: this is very unstable software right now. PMG is adding features to this as we need them., (*1)
use PMG\Metrics\Metrics;
use PMG\Metrics\Gauge;
$collector = Metrics::collector();
// track `someName` with a count gauge with a value of 10
$collector->gauge('someName', Gauge::count(10));
// Same as the above but tag `someName` with dimensions
$collector->gauge(
Metrics::name('someName')->dimension('example', '1'),
Gauge::count(10)
);
/* @var Reporter $reporter **/
$reporter->reportOn($collector->flush());
// $collector is now empty and ready to go
Generic metrics, PHP Style.
Apache-2.0
Generic metrics, PHP Style.
Apache-2.0