Add external checks with uptime
This commit is contained in:
13
CONFIG.en.md
13
CONFIG.en.md
@@ -43,6 +43,19 @@ This project uses `config.yaml`. Start from `config.example.yaml`.
|
||||
- `rotate_when` (string): Rotation schedule for `TimedRotatingFileHandler`. Example `W0` for weekly on Monday.
|
||||
- `backup_count` (int): How many rotated files to keep.
|
||||
|
||||
## external_checks
|
||||
|
||||
- `enabled` (bool): Enable background checks.
|
||||
- `state_path` (string): State file for uptime, default `/var/server-bot/external_checks.json`.
|
||||
- `timeout_sec` (int): Check timeout in seconds.
|
||||
- `interval_sec` (int): Background check interval.
|
||||
- `services` (list): List of checks.
|
||||
- `name` (string): Service name.
|
||||
- `type` (string): `http`, `tcp`, `ping`.
|
||||
- `url` (string): URL for `http`.
|
||||
- `host` (string): Host for `tcp`/`ping`.
|
||||
- `port` (int): Port for `tcp`.
|
||||
|
||||
## arcane
|
||||
|
||||
- `base_url` (string): Arcane API base url.
|
||||
|
||||
Reference in New Issue
Block a user