arrow-left

All pages
gitbookPowered by GitBook
1 of 13

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Get cluster node Memory usage trend (Byte)

Get cluster node CPU current load (Core Average)

Monitoring Node

Get cluster node CPU usage trend (%)chevron-right
Get cluster node CPU usage trend by status (%)chevron-right
Get cluster node CPU load trend (Average Core)chevron-right
Get cluster node CPU current load (Core Average)chevron-right
Get cluster node Memory usage trend (Byte)chevron-right
Get cluster node disk free space trendchevron-right
Get cluster node disk I/O rate change trendchevron-right
Get cluster node disk detailed usage ratechevron-right
Get cluster node network usage trend by devicechevron-right
Get cluster node uptimechevron-right
Get cluster node availabilitychevron-right

Get cluster node CPU load trend (Average Core)

Get cluster node CPU usage trend by status (%)

Get cluster node disk free space trend

Get cluster node disk I/O rate change trend

Get cluster node CPU usage trend (%)

Get cluster node disk detailed usage rate

Get cluster node availability

Get cluster node network usage trend by device

hashtag
Get cluster node Memory usage trend (Byte)

get

Get the per-minute trend of memory usage by node in the cluster, categorized by total, available, used, and used-ratio.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/memory-usage/result/transition
200

OK

hashtag
Get cluster node CPU current load (Core Average)

get

Get the current CPU load by node in the cluster.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/load/result/current
200

OK

Get cluster node network usage (bps)

Get cluster node uptime

GET /v1/monitoring-nodes/metric/memory-usage/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "total",
      "node": "apps-gpu-v100"
    },
    "samples": [
      16607899648,
      16607899648,
      16607899648
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "available",
      "node": "apps-gpu-v100"
    },
    "samples": [
      12771897344,
      12770172928,
      12823642112
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "used",
      "node": "apps-gpu-v100"
    },
    "samples": [
      3836002304,
      3837726720,
      3784257536
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "used-ratio",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.23097,
      0.23108,
      0.22786,
      0.23104
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  }
]
GET /v1/monitoring-nodes/metric/load/result/current?clusterIds=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "load1",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687826040,
    "value": 0.85
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "load5",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687826040,
    "value": 0.72
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "load15",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687826040,
    "value": 0.73
  }
]

hashtag
Get cluster node CPU load trend (Average Core)

get

Get the per-minute trend of CPU load by node in the cluster.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/load/result/transition
200

OK

hashtag
Get cluster node CPU usage trend by status (%)

get

Get the per-minute trend of CPU usage by state (User, System, Steal, Nice, Irq, Softirq, iowait, Idle) for cluster nodes.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/cpu-usage-by-mode/result/transition
200

OK

hashtag
Get cluster node CPU usage trend (%)

get

Get the per-minute trend of CPU usage by node in the cluster.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/cpu-usage/result/transition
200

OK

hashtag
Get cluster node disk I/O rate change trend

get

Get the per-minute trend of disk I/O speed change rate by node in the cluster.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/disk-io/result/transition
200

OK

hashtag
Get cluster node disk free space trend

get

Get the per-minute trend of disk usage by node in the cluster, categorized by total, available, available_ratio, and used Disk.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/disk-usage/result/transition
200

OK

hashtag
Get cluster node disk detailed usage rate

get

Get the disk details (device, mount point, namespace, pod, etc.) and usage of the cluster node.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/disk-detail-usage/result/current
200

OK

hashtag
Get cluster node availability

get

Get the available CPU (Core) and memory (Byte) capacity for cluster nodes.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/capacity/result/current
200

OK

hashtag
Get cluster node network usage trend by device

get

Get the per-minute trend of network usage by device for cluster nodes.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
startstringRequired

Start date for the query

endstringRequired

End date for the query

hashtag
Get cluster node uptime

get

Get the uptime of cluster nodes. The operation time represents the duration (without restarting) after the booting of the node (server).

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
Responses
chevron-right
200

OK

*/*

hashtag
Get cluster node network usage (bps)

get

Get network usage for cluster nodes, categorized by inbound and outbound.

Query parameters
clusterIdsstringRequired
nodeIdsstringOptional
Responses
chevron-right
200

OK

*/*
Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-nodes/metric/traffic-by-device/result/transition
200

OK

get
/v1/monitoring-nodes/metric/uptime/result/current
200

OK

get
/v1/monitoring-nodes/metric/network/result/current
200

OK

GET /v1/monitoring-nodes/metric/disk-detail-usage/result/current?clusterIds=text HTTP/1.1
Accept: */*
GET /v1/monitoring-nodes/metric/traffic-by-device/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "cali608295ca688",
      "measure": "inbound",
      "node": "apps-gpu-v100"
    },
    "samples": [
      318.2,
      340.33333,
      323.4,
      317.93333
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "cali608295ca688",
      "measure": "outbound",
      "node": "apps-gpu-v100"
    },
    "samples": [
      459.53333,
      580.13333,
      492.56667
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]
GET /v1/monitoring-nodes/metric/uptime/result/current?clusterIds=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "booting",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687842300,
    "value": 1669889847
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "running",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687842300,
    "value": 1687842293.5012803
  }
]
GET /v1/monitoring-nodes/metric/network/result/current?clusterIds=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "inbound",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687841100,
    "value": 421652.79999999993
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "outbound",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687841100,
    "value": 691668.5555555555
  }
]
GET /v1/monitoring-nodes/metric/load/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "load1",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.06,
      0.05125,
      0.0775
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "load5",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.06375,
      0.06,
      0.06375
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "load15",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.07625,
      0.07375,
      0.075
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  }
]
GET /v1/monitoring-nodes/metric/cpu-usage-by-mode/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "mode": "softirq",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.00097,
      0.00096,
      0.00088
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "mode": "steal",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0,
      0,
      0
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  }
]
GET /v1/monitoring-nodes/metric/cpu-usage/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "usage-cpu",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.07592,
      0.07889,
      0.07764
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]
GET /v1/monitoring-nodes/metric/disk-io/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "dm-0",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.2952,
      0.29763,
      0.25898
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]
GET /v1/monitoring-nodes/metric/disk-usage/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "/dev/mapper/centos-root",
      "measure": "total",
      "node": "apps-gpu-v100"
    },
    "samples": [
      982015008768,
      982015008768,
      982015008768
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200,
      1687741260
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "/dev/mapper/centos-root",
      "measure": "available",
      "node": "apps-gpu-v100"
    },
    "samples": [
      966450876416,
      966450876416,
      966464471040
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "/dev/mapper/centos-root",
      "measure": "used",
      "node": "apps-gpu-v100"
    },
    "samples": [
      15564132352,
      15564132352,
      15550537728
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "/dev/mapper/centos-root",
      "measure": "available_ratio",
      "node": "apps-gpu-v100"
    },
    "samples": [
      0.98415,
      0.98415,
      0.98416,
      0.98455
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "device": "/dev/mapper/centos-root",
      "measure": "used_ratio",
      "mountpoint": "/",
      "namespace": "cocktail-system",
      "node": "apps-gpu-v100",
      "pod": "cocktail-api-cmdb-0",
      "service": "api-cmdb"
    },
    "timestamp": "1687840740",
    "value": "0.015729446533998215"
  }
]
GET /v1/monitoring-nodes/metric/capacity/result/current?clusterIds=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "capacity-cpu",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687842900,
    "value": 8
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "capacity-memory",
      "node": "apps-gpu-v100"
    },
    "timestamp": 1687842900,
    "value": 16607899648
  }
]