Skip to main content
POST
/
cloud
/
v1
/
loadbalancers
/
{project_id}
/
{region_id}
/
{load_balancer_id}
/
metrics
Get load balancer metrics
curl --request POST \
  --url https://api.gcore.com/cloud/v1/loadbalancers/{project_id}/{region_id}/{load_balancer_id}/metrics \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "time_interval": 6
}
'
{
  "count": 1,
  "results": [
    {
      "cpu_util": 8,
      "memory_util": 33.28411162695459,
      "network_Bps_egress": 102,
      "network_Bps_ingress": 102,
      "network_pps_egress": 0.7,
      "network_pps_ingress": 0.7,
      "time": "2020-07-07T12:57:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Example:

1

region_id
integer
required

Region ID

Example:

7

load_balancer_id
string<uuid4>
required

Load-Balancer ID

Example:

"ac307687-31a4-4a11-a949-6bea1b2878f5"

Body

application/json
time_interval
integer
required

Time interval

Example:

6

time_unit
enum<string>
required

Time interval unit

Available options:
day,
hour
Example:

"hour"

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
Example:

1

results
LoadbalancerMetricsSerializer · object[]
required

Objects