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.
2 parents 54852fb + 8a136cc commit a652c74Copy full SHA for a652c74
src/Repositories/PrometheusRepository/Installer.php
@@ -23,8 +23,11 @@ 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)
28
+ ->client();
29
- $storage = Redis::fromExistingConnection($redisManager->client());
30
+ $storage = Redis::fromExistingConnection($redis);
31
$registry = new CollectorRegistry($storage, false);
32
33
return new PrometheusRepository($registry, $config);
0 commit comments