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

Redis: CROSSSLOT Keys in request don't hash to the same slot #112

Open eliseubamaral opened 1 year ago

eliseubamaral commented 1 year ago

Hey, When I use redis on cluster mode, I've received this error: CROSSSLOT Keys in request don't hash to the same slot. Is this lib compatible with redis on cluster mode?

dp85 commented 1 year ago

I was looking into this too. I don't think PromPHP supports Redis Clusters. http://github.com/PromPHP/prometheus_client_php/blob/82e42b5a491ee94127110548ee835052b9765a78/src/Prometheus/Storage/Redis.php#L60

eliseubamaral commented 1 year ago

Thanks @dp85. I've started to use APC. It has been work fine until now.

mvhirsch commented 4 months ago

@eliseubamaral did you figure out how to use RedisCluster in the meantime?

eliseubamaral commented 4 months ago

No, I didn't @mvhirsch.