Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 619 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 619 Bytes

Prometheus Swoole Adapters

Prometheus endclothing/prometheus_client_php Storage Adapters for Swoole

MakiseRedisAdaper

This adapter is a copy of original RedisAdapter, but it works with RedisPool (makise-co/redis) and it's no longer work with static variables.

Usage

/** @var \MakiseCo\Redis\RedisPool $pool */
$adapter = new \MakiseCo\Prometheus\Storage\MakiseRedisStorage($pool, 'test_makise');
$collector = new \Prometheus\CollectorRegistry($adapter);

// do anything what you want with $collector