Skip to main content

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​

OptionDescription
--healthy-threshold, -vConsecutive successful checks before a member is marked healthy (required)
--interval, -nSeconds between health checks (required)
--lb-id, -iID of the load balancer (required)
--path, -uURL path to probe (for HTTP/HTTPS types), e.g. /healthz
--pool-id, -pID of the pool to attach the health monitor to (required)
--timeout, -tSeconds to wait for a probe response before it fails (required)
--type, -yHealth check type. One of: HTTP, HTTPS, TCP, PING (required)
--unhealthy-threshold, -xConsecutive failed checks before a member is marked unhealthy (required)
CommandDescription
dtctl load-balancer update-health-monitorUpdate a health monitor
dtctl load-balancer delete-health-monitorDelete a health monitor
dtctl load-balancer health-monitor-detailsShow a health monitor
dtctl load-balancer health-monitorsList health monitors

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text