dtctl load-balancer listener-stats
Usage
dtctl load-balancer listener-stats [flags]
Aliases
ls
Description
Retrieve live connection statistics for a listener (active connections, bytes in/out, request counts).
Example
dtctl load-balancer listener-stats --lb-id <lb-id> --listener-id <listener-id>
Response
In text output (the default), this command returns the following columns: Listener ID, Bytes In, Bytes Out, Active Connections, Total Connections, Request Errors.
Pass --output json to get the full response object instead.
Flags
| Option | Description |
|---|---|
--lb-id, -i | ID of the load balancer (required) |
--listener-id, -l | ID of the load balancer listener (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl load-balancer create-listener | Create a listener |
| dtctl load-balancer update-listener | Update a listener |
| dtctl load-balancer delete-listener | Delete a listener |
| dtctl load-balancer listener-details | Show a listener |
| dtctl load-balancer listeners | List listeners of a load balancer |
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 |