Skip to content

makise-co/prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Prometheus Storage Adapters for Swoole

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages