Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predis support? #156

Open
matheusbento opened this issue Jun 20, 2024 · 2 comments
Open

Predis support? #156

matheusbento opened this issue Jun 20, 2024 · 2 comments

Comments

@matheusbento
Copy link

I'm using Predis on my laravel, I tried to use something like this:

$connection = $this->app->make('redis')->connection(config('prometheus.redis'))->client();
$adapter = Redis::fromExistingConnection($connection);
$registry = new CollectorRegistry($adapter, false);
$renderer = new RenderTextFormat();
$result = $renderer->render($registry->getMetricFamilySamples());
return response()->json(['data' => $result]);

its saying that is not possible to convert Predis to Redis, but I would like to continue working with Predis,

What can I do to keep using this lib?

@LKaemmerling
Copy link
Member

Currently, there is no Predis support available. However if you would have spare time, feel free to add support for Predis within an MR. I would be happy to review & merge it :)

@augustonicolawd
Copy link

Hey there! I'm also using Predis and facing the same problem. I just wanted to ask if PR #127 could be any useful for supporting Predis. I haven't tested with the PR yet, but I'll update if I find anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants