Skip to content

Get each device's metrics

GET
/api/v1/servers/{nodeId}/device-series
curl --request GET \
--url https://app.monitorly.cloud/api/v1/servers/NODE_ID/device-series \
--header 'Authorization: Bearer <token>'

Every disk, network card, temperature sensor or filesystem of a server over the last 24 hours, 7 or 30 days, by name.

nodeId
required
string format: uuid

The id of the private node that runs on the server.

Example

NODE_ID
kind
string

disk (whole block devices), interface (network cards), sensor (temperatures) or filesystem.

range
string

24h (5-minute points, the default), 7d or 30d (hourly points).

The series.

Media typeapplication/json
object
kind
required
string
range
required
string
series
required

By name: the kernel’s disk name, the card’s name, <chip>/<label> of a sensor, a mount path.

Array<object>
object
name
required
string
points
required

Oldest first; a step without a report of the device has no point.

Array<object>

One step of one device; only the fields of its kind are set.

object
at
required
string
awaitAvg
number | null format: double
busyAvg
number | null format: double
busyMax
number | null format: double
celsiusAvg

Sensors: °C.

number | null format: double
celsiusMax
number | null format: double
droppedAvg
number | null format: double
errorsAvg
number | null format: double
inodesMax
number | null format: double
packetsAvg
number | null format: double
queueAvg
number | null format: double
readAvg

Disks: bytes and operations per second, the share of the time busy and the requests in flight.

number | null format: double
readOpsAvg
number | null format: double
rxAvg

Network cards: bytes, errors, drops and packets per second.

number | null format: double
txAvg
number | null format: double
usedMax

Filesystems: df’s Use% and the share of inodes in use (none where the filesystem counts none).

number | null format: double
writeAvg
number | null format: double
writeOpsAvg
number | null format: double
stepSecs
required
integer format: int32

Example generated

{
"kind": "example",
"range": "example",
"series": [
{
"name": "example",
"points": [
{
"at": "example",
"awaitAvg": 1,
"busyAvg": 1,
"busyMax": 1,
"celsiusAvg": 1,
"celsiusMax": 1,
"droppedAvg": 1,
"errorsAvg": 1,
"inodesMax": 1,
"packetsAvg": 1,
"queueAvg": 1,
"readAvg": 1,
"readOpsAvg": 1,
"rxAvg": 1,
"txAvg": 1,
"usedMax": 1,
"writeAvg": 1,
"writeOpsAvg": 1
}
]
}
],
"stepSecs": 1
}

Bad Request.

  • request.malformed: the body or a parameter is not of the expected shape
  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unauthorized.

  • auth.unauthenticated, auth.session_expired: no session, or it ended
  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Forbidden.

  • auth.forbidden: your role is too low for this
  • token.scope_missing: the token lacks the scope this needs; detail names it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Not Found.

  • request.not_found: it does not exist, or you cannot see it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unprocessable Entity.

  • field.invalid, field.required: a parameter breaks a rule; errors points at it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Too Many Requests.

  • token.rate_limited: more than 10 requests a second with this token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.