We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54852fb commit 6b7ce7aCopy full SHA for 6b7ce7a
src/Repositories/PrometheusRepository/Installer.php
@@ -23,8 +23,10 @@ public function install(array $config): void
23
$this->app->singleton(PrometheusRepositoryContract::class, function () use ($config) {
24
/** @var RedisManager $redisManager */
25
$redisManager = $this->app->make(RedisManager::class);
26
+ $connection = $config['connections']['prometheus']['redis'];
27
+ $redis = $redisManager->connection($connection)->client();
28
- $storage = Redis::fromExistingConnection($redisManager->client());
29
+ $storage = Redis::fromExistingConnection($redis);
30
$registry = new CollectorRegistry($storage, false);
31
32
return new PrometheusRepository($registry, $config);
0 commit comments