I've upgraded to Laravel 8 and the performance was poor; digging into it I found out that $registry->getMetricFamilySamples(), when using the Redis adapter, uses the keys Redis command that's a performance killer (redis is single-threaded).
|
$keys = $this->redis->keys($summaryKey . ':*:meta'); |
I've upgraded to Laravel 8 and the performance was poor; digging into it I found out that
$registry->getMetricFamilySamples(), when using the Redis adapter, uses thekeysRedis command that's a performance killer (redis is single-threaded).prometheus_client_php/src/Prometheus/Storage/Redis.php
Line 488 in 1088114