diff --git a/checks/redis/check.go b/checks/redis/check.go index 86bcb2f..e55205c 100644 --- a/checks/redis/check.go +++ b/checks/redis/check.go @@ -20,9 +20,10 @@ type Config struct { func New(config Config) func(ctx context.Context) error { // support all DSN formats (for backward compatibility) - with and w/out schema and path part: // - redis://localhost:1234/ + // - rediss://localhost:1234/ // - localhost:1234 redisDSN := config.DSN - if !strings.HasPrefix(redisDSN, "redis://") { + if !strings.HasPrefix(redisDSN, "redis://") && !strings.HasPrefix(redisDSN, "rediss://") { redisDSN = fmt.Sprintf("redis://%s", redisDSN) } redisOptions, _ := redis.ParseURL(redisDSN)