dtctl load-balancer create-health-monitor
Usage
dtctl load-balancer create-health-monitor [flags]
Aliases
chm
Description
Add a health monitor to a pool. The monitor probes each member on the given interval and marks it healthy/unhealthy based on the thresholds.
Example
# Add a TCP health monitor to a pool
dtctl load-balancer create-health-monitor --lb-id <lb-id> --pool-id <pool-id> --type TCP --interval 5 --timeout 5 --healthy-threshold 3 --unhealthy-threshold 3
Flags
| Option | Description |
|---|---|
--healthy-threshold, -v | Consecutive successful checks before a member is marked healthy (required) |
--interval, -n | Seconds between health checks (required) |
--lb-id, -i | ID of the load balancer (required) |
--path, -u | URL path to probe (for HTTP/HTTPS types), e.g. /healthz |
--pool-id, -p | ID of the pool to attach the health monitor to (required) |
--timeout, -t | Seconds to wait for a probe response before it fails (required) |
--type, -y | Health check type. One of: HTTP, HTTPS, TCP, PING (required) |
--unhealthy-threshold, -x | Consecutive failed checks before a member is marked unhealthy (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl load-balancer update-health-monitor | Update a health monitor |
| dtctl load-balancer delete-health-monitor | Delete a health monitor |
| dtctl load-balancer health-monitor-details | Show a health monitor |
| dtctl load-balancer health-monitors | List health monitors |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |