GET
/
openapi
/
v1
/
metrics
/
gpu
/
instance
Fetch Instance Monitor Metrics
curl --request GET \
  --url https://api.novita.ai/openapi/v1/metrics/gpu/instance \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "cpuUtilization": [
    {
      "timestamp": "<string>",
      "value": 123
    }
  ],
  "memUtilization": [
    {
      "timestamp": "<string>",
      "value": 123
    }
  ],
  "rootDiskUtilization": [
    {
      "timestamp": "<string>",
      "value": 123
    }
  ],
  "gpuUtilization": {
    "avg": [
      {
        "timestamp": "<string>",
        "value": 123
      }
    ],
    "gpuIds": [
      {
        "gpuId": "<string>",
        "items": [
          {
            "timestamp": "<string>",
            "value": 123
          }
        ]
      }
    ]
  },
  "gpuMemUtilization": {
    "avg": [
      {
        "timestamp": "<string>",
        "value": 123
      }
    ],
    "gpuIds": [
      {
        "gpuId": "<string>",
        "items": [
          {
            "timestamp": "<string>",
            "value": 123
          }
        ]
      }
    ]
  }
}

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Query Parameters

If the parameters endTime, startTime, or interval do not meet the requirements, default values will be used. There may be a delay of about one minute when retrieving real-time monitoring data.
instanceId
string
required
Instance ID.
endTime
integer
End time for querying monitoring data. Value range: (0, current timestamp], default: current timestamp.
startTime
integer
Start time for querying monitoring data. Value range: (0, endTime - 60], default: current timestamp - 60.
interval
integer
Time granularity for monitoring data, in seconds. Value must be greater than 15. Default: 15.

Response

cpuUtilization
array
required
CPU utilization data.
memUtilization
array
required
Memory utilization data.
rootDiskUtilization
array
required
Root disk utilization data.
gpuUtilization
object
required
GPU utilization data.
gpuMemUtilization
object
required
GPU memory utilization data.