makise-co/prometheus

Makise-Co set of Prometheus StorageAdapters for Swoole

v2.0.0 2021-11-26 01:15 UTC

This package is auto-updated.

Last update: 2024-04-26 07:07:11 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