hcloud_get_load_balancer_metrics
Retrieve Hetzner Cloud Load Balancer metrics for open connections, requests per second, connections per second, and bandwidth over a specified time range.
Instructions
Get Metrics for a LoadBalancer
You must specify the type of metric to get: open_connections, connections_per_second, requests_per_second or bandwidth. You can also specify more than one type by comma separation, e.g. requests_per_second,bandwidth.
Depending on the type you will get different time series data:
Type | Timeseries | Unit | Description |
open_connections | open_connections | number | Open connections |
connections_per_second | connections_per_second | connections/s | Connections per second |
requests_per_second | requests_per_second | requests/s | Requests per second |
bandwidth | bandwidth.in | bytes/s | Ingress bandwidth |
bandwidth.out | bytes/s | Egress bandwidth |
Metrics are available for the last 30 days only.
If you do not provide the step argument we will automatically adjust it so that 200 samples are returned.
We limit the number of samples to a maximum of 500 and will adjust the step parameter accordingly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the Load Balancer. | |
| end | Yes | End of period to get Metrics for (must be in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). | |
| step | No | Resolution of results in seconds. | |
| type | Yes | Type of metrics to get. | |
| start | Yes | Start of period to get Metrics for (must be in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). |