makise-co / prometheus
Makise-Co set of Prometheus StorageAdapters for Swoole
v2.0.0
2021-11-26 01:15 UTC
Requires
- php: >=7.4
- ext-json: *
Requires (Dev)
- makise-co/redis: ^1.0
- phpunit/phpunit: ^9.5
- predis/predis: ^1.1
- promphp/prometheus_client_php: ^2.4
- swoole/ide-helper: ^4.5
- symfony/var-dumper: ^5.0
Suggests
- ext-redis: For redis storage
- makise-co/redis: For redis storage
This package is auto-updated.
Last update: 2025-02-26 09:15:34 UTC
README
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