nurse/nurse.yaml
Peter Kurfer 4c2aa968d2
Implement config reading
- support config file
- support reading checks, server definition and endpoint definitions from env
2022-05-08 11:00:22 +02:00

16 lines
309 B
YAML

checkTimeout: 500ms
servers:
redis_local:
url: redis://localhost:6379/0
args:
MaxRetries: 3
endpoints:
/ready:
checkTimeout: 500ms
checks:
- redis.PING("redis_local")
/liveness:
checkTimeout: 100ms
checks:
- redis.GET("redis_local", "running") => String("ok")