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

feature request: add redis healthcheck indicator for terminus #72

Open
TrejGun opened this issue Mar 30, 2021 · 8 comments
Open

feature request: add redis healthcheck indicator for terminus #72

TrejGun opened this issue Mar 30, 2021 · 8 comments

Comments

@TrejGun
Copy link

TrejGun commented Mar 30, 2021

Hello there!
Thanks for nice module.
I think it would be good to have healthcheck indicator for redis same as we have for typeorm

@TrejGun TrejGun changed the title feature request: add readis healthcheck indicator for terminus feature request: add redis healthcheck indicator for terminus Apr 24, 2021
@MarkWarneke
Copy link

@TrejGun
Copy link
Author

TrejGun commented Aug 2, 2021

there are some more examples and better module which is actually gets updates
https://github.com/liaoliaots/nestjs-redis/blob/main/lib/health/indicators/redis.health.ts

@riteshkhatri
Copy link

@AydenZ
Copy link

AydenZ commented Jun 2, 2022

@MarkWarneke There is a sample for checking redis in the terminus repo:

https://github.com/nestjs/terminus/blob/08c0de9976c73e8d665b1f4c8a9976cb1fc02f51/sample/002-microservice-app/src/health/health.controller.ts#L21-L28

Is it working ?

No, i try it ,It is not working

@peng-huang-ch
Copy link

peng-huang-ch commented Jul 14, 2022

import { parseURL } from 'ioredis/built/utils';

the ioredis seems do not support the url in the options

const redisOption = parseURL(this.configService.get('REDIS_URL'));

this.microservice.pingCheck<RedisOptions>('redis', {
	transport: Transport.REDIS,
	options: {
		...redisOption,
	},
})

@riteshkhatri
Copy link

riteshkhatri commented Jul 14, 2022 via email

@orgaizer
Copy link

Any updates here?

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

7 participants
@TrejGun @MarkWarneke @peng-huang-ch @riteshkhatri @AydenZ @orgaizer and others