Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Get the trend of the total number of pods deployed in the namespace on a per-minute basis.
OK
OK
GET /v1/monitoring-ns/metric/total-pod-count/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system"
},
"samples": [
55,
55,
55
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]Get the trend of the number of pods restarted per minute in the namespace.
OK
OK
GET /v1/monitoring-ns/metric/pod-restart/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"container": "kube-scheduler",
"namespace": "cocktail-system",
"pod": "cocktail-api-cmdb-0",
"workload": "cocktail-api-cmdb"
},
"samples": [
0,
0,
0
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]GET /v1/monitoring-ns/metric/cpu/result/transition?clusterIds=text&namespaces=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"measure": "usage-cpu",
"namespace": "cocktail-system",
"node": "apps-gpu-v100",
"pod": "cocktail-api-cmdb-0",
"workload": "cocktail-api-cmdb"
},
"samples": [
0.00055,
0.00065,
0.00067
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]Get the total requested and limited CPU (cores) and memory (bytes) amounts for pods deployed in the namespace.
OK
OK
GET /v1/monitoring-ns/metric/quota/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"measure": "limit-cpu",
"namespace": "cocktail-system"
},
"samples": [
0,
0,
0
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
},
{
"metrics": {
"cluster": "thingcluster",
"measure": "limit-memory",
"namespace": "cocktail-system"
},
"samples": [
4760535040,
4760535040,
4760535040
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
},
{
"metrics": {
"cluster": "thingcluster",
"measure": "request-cpu",
"namespace": "cocktail-system"
},
"samples": [
4.215,
4.215,
4.215
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
},
{
"metrics": {
"cluster": "thingcluster",
"measure": "request-memory",
"namespace": "cocktail-system"
},
"samples": [
1293547520,
1293547520,
1293547520
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]GET /v1/monitoring-ns/metric/created/result/current?clusterIds=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system"
},
"timestamp": 1687846680,
"value": 1669945838
}
]GET /v1/monitoring-ns/metric/total-memory/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"measure": "usage-memory"
},
"samples": [
8434753536,
8435253248,
8462614528
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]GET /v1/monitoring-ns/metric/memory/result/transition?clusterIds=text&namespaces=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"measure": "usage-memory",
"namespace": "cocktail-system",
"node": "apps-gpu-v100",
"pod": "cocktail-api-cmdb-0",
"workload": "cocktail-api-cmdb"
},
"samples": [
5505024,
5480448,
5570560
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]GET /v1/monitoring-ns/metric/total-cpu/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"measure": "usage-cpu"
},
"samples": [
1.41992,
1.32641,
1.39083
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]Get the per-minute trend of the total number of pods deployed on a node in the namespace.
OK
OK
GET /v1/monitoring-ns/metric/pod-qos/result/current?clusterIds=text HTTP/1.1
Accept: */*
GET /v1/monitoring-ns/metric/pod-count-on-node/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system",
"node": "apps-gpu-v100"
},
"samples": [
5,
5,
5
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
][
{
"metrics": {
"measure": "guarantted"
},
"timestamp": 0,
"value": 0
},
{
"metrics": {
"measure": "burstable"
},
"timestamp": 0,
"value": 35
},
{
"metrics": {
"measure": "best-effort"
},
"timestamp": 0,
"value": 20
}
]Get the trend of the number of deployments created in the namespace per minute.
OK
OK
GET /v1/monitoring-ns/metric/deployment-created/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system"
},
"samples": [
5,
5,
5
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]Get the trend of the number of terminated pods per minute in the namespace.
OK
OK
GET /v1/monitoring-ns/metric/volume/result/current?clusterIds=text HTTP/1.1
Accept: */*
OK
GET /v1/monitoring-ns/metric/pod-list/result/current?clusterIds=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"measure": "total",
"pv_name": "pvc-25d59719-c9d4-48ac-a87a-be5adca980a2",
"pvc_name": "data-cocktail-monitoring-monitoring-db-0",
"pvc_namespace": "cocktail-system",
"storage_class": "nfs-csi",
"volume_type": "text"
},
"timestamp": 1687934760,
"value": 1099511627776
}
]GET /v1/monitoring-ns/metric/pod-terminated/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system"
},
"samples": [
0,
0,
0
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
][
{
"metrics": {
"cluster": "thingcluster",
"creator": "nfd-worker",
"creator-kind": "DaemonSet",
"end-point": "http",
"host_ip": "0.0.0.0",
"instance": "0.0.0.0:8080",
"namespace": "cocktail-system",
"node": "apps-gpu-v100",
"pod": "cocktail-api-cmdb-0",
"pod-ip": "0.0.0.0"
},
"timestamp": 1687848360,
"value": 1
}
]Get the per-minute trend of PVC status (Bound, Pending, Lost) created in the namespace.
OK
OK
OK
OK
GET /v1/monitoring-ns/metric/total-pvc-count/result/current?clusterIds=text HTTP/1.1
Accept: */*
GET /v1/monitoring-ns/metric/pod-ready/result/current?clusterIds=text HTTP/1.1
Accept: */*
POST /v1/monitoring-ns/metric/pod-status/result/current HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"clusters": [
{
"name": "thingcluster",
"namespaces": [
{
"name": "cocktail-system"
}
]
}
]
}{
"thingcluster": {
"cocktail-system": {
"pod_run": 39,
"pod_total": 39,
"pvc_bound": 0,
"pvc_lost": 0,
"pvc_pending": 0
}
}
}[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system"
},
"timestamp": 1687932960,
"value": 23
}
]GET /v1/monitoring-ns/metric/pvc-phase/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system",
"phase": "Pending",
"pvc": "data-cocktail-monitoring-monitoring-db-0"
},
"samples": [
0,
0,
0
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
][
{
"metrics": {
"ready": "78"
},
"timestamp": 1687851000,
"value": 78
}
]Get the trend of the number of pods in the waiting state per minute in the namespace.
OK
OK
POST /v1/monitoring-ns/metric/total-resource/result/current HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"clusters": [
{
"name": "thingcluster"
}
]
}{
"thingcluster": {
"cocktail-system": {
"limit_cpu": 0,
"limit_memory": 4760535040,
"request_cpu": 4215,
"request_memory": 1293547520,
"usage_cpu": 1298,
"usage_memory": 8463978496
},
"limit_cpu": 57900,
"limit_memory": 87966199808,
"request_cpu": 26665,
"request_memory": 37130840064,
"usage_cpu": 2439,
"usage_memory": 51958136832
}
}GET /v1/monitoring-ns/metric/pod-waiting/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
{
"metrics": {
"cluster": "thingcluster",
"namespace": "cocktail-system"
},
"samples": [
0,
0,
0
],
"timestamps": [
1687741080,
1687741140,
1687741200
],
"values": null
}
]