Skip to main content

Redis

The Redis check connects to a specified Redis database instance to check its availability.

redis.yaml
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: redis-succeed
spec:
schedule: "@every 5m"
redis:
- addr: "redis.canaries.svc.cluster.local:6379"
name: redis ping check
db: 0
description: "The redis pass test"
FieldDescriptionScheme
name*

Name of the check, must be unique within the canary

string

addr

Redis address (deprecated - use url instead)

string

connection

Connection name e.g. connection://redis/prod

string

db

Database to be selected after connecting to the server

integer

password

Password for authentication

EnvVar

password

EnvVar

url

Redis connection URL

string

username

Username for authentication

EnvVar

username

EnvVar

description

Description for the check

string

display

Expression to change the formatting of the display

Expression

icon

Icon for overwriting default icon on the dashboard

Icon

labels

Labels for check

[map[string]string]

markFailOnEmpty

If a transformation or datasource returns empty results, the check should fail

boolean

metrics

Metrics to export from

[]Metrics

test

Evaluate whether a check is healthy

Expression

transform

Transform data from a check into multiple individual checks

Expression