PromPHP / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
415 stars 91 forks source link

Added support of Predis library as storage adapter #127

Open tworzenieweb opened 11 months ago

tworzenieweb commented 11 months ago

Since predis library is a well-known alternative to phpredis, I've decided to add an extension to Redis storage adapter.

Some properties and methods were changed to protected in order to handle slight differences between these 2 libs.

Mostly additional params are passed as an array in phpredis and as single arguments in predis.

mvhirsch commented 4 months ago

I'm currently looking into adding RedisCluster support (see #153). Probably we could join forces by rewriting the Redis adapter and include the if/else for handling Predis transparently and hiding the complexity to any user (DX++). WDYT?