29 lines
689 B
YAML
29 lines
689 B
YAML
checks:
|
|
# 1) Native "I'm alive" heartbeat for this VM
|
|
- name: self_alive
|
|
type: native
|
|
push: xxxxxxxxxxxxxxxxxx # Kuma push token
|
|
|
|
# 2) HTTP health endpoint
|
|
- name: web_frontend
|
|
type: http
|
|
target: http://localhost:8080/health
|
|
push: xxxxxxxxxxxxxxxxxx
|
|
|
|
# 3) Systemd unit running?
|
|
- name: api_service
|
|
type: service
|
|
target: my-api.service
|
|
push: xxxxxxxxxxxxxxxxxx
|
|
|
|
# 4) Docker container running?
|
|
- name: redis_container
|
|
type: docker
|
|
target: redis # container name or ID
|
|
push: xxxxxxxxxxxxxxxxxx
|
|
|
|
# 5) NFS mount present?
|
|
- name: media_nfs
|
|
type: mount
|
|
target: /mnt/media
|
|
push: xxxxxxxxxxxxxxxxxx
|