Addons /
Get addon metrics
Required permission
Project > Addons > Deployment > View Instance Metrics
Path parameters
projectId
string requiredID of the projectaddonId
string requiredID of the addon
Query parameters
containerName
stringLimits metrics to a specific container.queryType
stringSelects metrics for specified timestamp.one ofrange, singlemetricTypes
stringType of metric. Multiple metric types can be selected by specifying the query parameter repeatedly.one ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumestartTime
stringFetch metrics generated after this timestamp. Only valid for queryType: `range`.endTime
stringFetch metrics generated before this timestamp. Only valid for queryType: `range`.duration
integerRange duration in seconds. If set, only one of `startTime` or `endTime` can be set.time
stringFetch metrics at this timestamp. If not provided will use current time. Only valid for queryType: `single`.
Response body
- {object}Response object.
data
{object} requiredResult data.cpu
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requiredmemory
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requirednetworkIngress
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requirednetworkEgress
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requiredtcpConnectionsOpen
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requireddiskUsage
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requiredrequests
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requiredhttp4xxResponses
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requiredhttp5xxResponses
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requiredbandwidth
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string requiredbandwidthVolume
{object}metricInfo
{object}metricId
string requiredType of metric to fetchone ofcpu, memory, networkIngress, networkEgress, tcpConnectionsOpen, diskUsage, requests, http4xxResponses, http5xxResponses, bandwidth, bandwidthVolumemetricUnit
string requiredone ofpct, vCPU, mb, kbps, rps, countmetricResolution
numbervalues
[array] required- {object}
metadata
{object}containerId
string requiredvolumeId
stringdata
[array] required- {object}
value
number requiredts
string required
GET /v1/projects/{projectId}/addons/{addonId}/metrics
Example response
200 OK
JSON
{
"data": {
"cpu": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"memory": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"networkIngress": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"networkEgress": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"tcpConnectionsOpen": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"diskUsage": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"requests": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"http4xxResponses": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"http5xxResponses": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"bandwidth": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
},
"bandwidthVolume": {
"metricInfo": {
"metricUnit": "pct",
"metricResolution": 10
},
"values": [
{
"metadata": {
"containerId": "nginx-669cc865b7-5458n",
"volumeId": "data-volume-1"
},
"data": [
{
"value": 0.5,
"ts": "2023-03-21T15:01:17.310Z"
}
]
}
]
}
}
}