Configuration file
Describe groups and checks in YAML and point MONITOR_CONFIG_FILE to it. The file is applied at every start.
groups:
Websites:
status-page: true # shown on the public status page
order: 10 # place in lists (smaller is higher)
owner: alice # username; none — the group has no owner (administrators see it)
checks:
shop-web:
name: shop
type: http
target: https://shop.example.com
status-page: true
group: Websites
shop-db:
name: Shop database
type: tcp
target: db.internal:5432
nightly-backup:
name: Nightly backup
type: push
interval-seconds: 86400
grace-seconds: 3600
The key of each entry is the check's externalId; fields are the same as in the API, written with dashes.
With Docker, mount the file: -v ./jammonic.yml:/config/jammonic.yml:ro -e MONITOR_CONFIG_FILE=/config/jammonic.yml.
A group listed in the file gets the file's status page, order and owner at every start. A group named only in a check is created without an owner and kept off the status page.
The file owns its own checks: a check removed from the file is removed from Jammonic. Checks created through the API or the UI are never touched by the file, so both ways live side by side.