Skip to main content

Redis

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

apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: redis-check
spec:
interval: 30
redis:
- name: redis-check
addr: "redis.default.svc:6379"
db: 0
username:
valueFrom:
secretKeyRef:
name: redis-credentials
key: USERNAME
password:
valueFrom:
secretKeyRef:
name: redis-credentials
key: PASSWORD
FieldDescriptionSchemeRequired
addrDeprecated, use urlstringYes
dbDatabase to be selected after connecting to the serverintYes
nameName of the check, must be unique within the canarystringYes
descriptionDescription for the checkstring
iconIcon for overwriting default icon on the dashboardstring
labelsLabels for checkmap[string]string
testEvaluate whether a check is healthyExpression
displayExpression to change the formatting of the displayExpression
transformTransform data from a check into multiple individual checksExpression
metricsMetrics to export from[]Metrics

Redis Connection

FieldDescriptionScheme
connectionPath of existing connection e.g. connection://redis/instance
Mutually exclusive with url
Connection
urlRedis hostname and port
username Mutually exclusive with connection EnvVar
password Mutually exclusive with connection EnvVar