diff --git a/src/Repositories/PrometheusRepository/Installer.php b/src/Repositories/PrometheusRepository/Installer.php index 1d1cf5f..4dc39d8 100644 --- a/src/Repositories/PrometheusRepository/Installer.php +++ b/src/Repositories/PrometheusRepository/Installer.php @@ -23,8 +23,10 @@ public function install(array $config): void $this->app->singleton(PrometheusRepositoryContract::class, function () use ($config) { /** @var RedisManager $redisManager */ $redisManager = $this->app->make(RedisManager::class); + $connection = $config['connections']['prometheus']['redis']; + $redis = $redisManager->connection($connection)->client(); - $storage = Redis::fromExistingConnection($redisManager->client()); + $storage = Redis::fromExistingConnection($redis); $registry = new CollectorRegistry($storage, false); return new PrometheusRepository($registry, $config);