arrow-left

All pages
gitbookPowered by GitBook
1 of 12

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Get cluster CPU/Memory request trend (Core/Byte)

Get cluster kube API server request

Get cluster restart pod growth rate

Get cluster Memory usage trend (Byte)

Monitoring Cluster

Get cluster CPU usage trend (Core)chevron-right
Get cluster Memory usage trend (Byte)chevron-right
Get cluster CPU/Memory request trend (Core/Byte)chevron-right
Get cluster network usage trend (Mbps)chevron-right
Get cluster kube API server requestchevron-right
Get cluster kube API server average response timechevron-right
Get cluster restart pod listchevron-right
Get cluster restart pod growth ratechevron-right
Get cluster pod count trend by statuschevron-right
Get cluster pod CPU usage Top 5 trend (Core)chevron-right
Get cluster pod Memory usage Top 5 trend (Byte)chevron-right

hashtag
Get cluster CPU/Memory request trend (Core/Byte)

get

Get the per-minute trend of overall CPU and memory requests/limits in the cluster.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/quota/result/transition
200

OK

Get cluster pod count trend by status

Get cluster restart pod list

GET /v1/monitoring-clusters/metric/quota/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "limit-cpu"
    },
    "samples": [
      69.425,
      69.425,
      69.425
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "limit-memory"
    },
    "samples": [
      108818182144,
      108818182144,
      108818182144
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "request-cpu"
    },
    "samples": [
      25.935,
      25.935,
      25.935
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "request-memory"
    },
    "samples": [
      44447803392,
      44447803392,
      44447803392
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  }
]

Get cluster CPU usage trend (Core)

hashtag
Get cluster kube API server request

get

Get the number of requests to the Kubernetes API server in the past 2 minutes, converted to requests per second.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/kube-api-server-request/result/transition
200

OK

hashtag
Get cluster restart pod growth rate

get

Get the rate of pods restarted in the cluster.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-ns/metric/pod-restart/result/transition
200

OK

Get cluster kube API server average response time

GET /v1/monitoring-clusters/metric/kube-api-server-request/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster"
    },
    "samples": [
      41.46032,
      39.72698,
      41.31587
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]
GET /v1/monitoring-ns/metric/pod-restart/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "container": "gateway",
      "namespace": "cocktail-system",
      "pod": "cocktail-api-cmdb-0",
      "workload": "cocktail-api-cmdb"
    },
    "samples": [
      0,
      0,
      0
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

Get cluster pod CPU usage Top 5 trend (Core)

Get cluster network usage trend (Mbps)

Get cluster pod Memory usage Top 5 trend (Byte)

hashtag
Get cluster Memory usage trend (Byte)

get

Get the per-minute trend of the overall memory usage in the cluster, categorized by cache and working set.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/memory/result/transition
200

OK

GET /v1/monitoring-clusters/metric/memory/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "usage-bytes"
    },
    "samples": [
      85735514112,
      85752094720,
      85719015424
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

hashtag
Get cluster pod count trend by status

get

Get the per-minute trend of the number of pods by status (Unknown, Failed, Pending, Running, Succeeded).

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/pod-running/result/transition
200

OK

hashtag
Get cluster restart pod list

get

Get the list of pods restarted in the cluster.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

hashtag
Get cluster network usage trend (Mbps)

get

Get the per-minute trend of the overall network usage in the cluster, categorized by inbound and outbound.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/pod-restart-list/result/transition
200

OK

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/network/result/transition
200

OK

GET /v1/monitoring-clusters/metric/pod-restart-list/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "namespaces": "cocktail-system",
      "pod": "cocktail-api-cmdb-0"
    },
    "timestamps": 1685621400,
    "values": 1.3333333333333333
  }
]
GET /v1/monitoring-clusters/metric/network/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "inbound"
    },
    "samples": [
      3175670.24444,
      3497435.7,
      3347020
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  },
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "outbound"
    },
    "samples": [
      3543429.77778,
      3879819.71111,
      3899043.1
    ],
    "timestamps": [
      1685620800,
      1685620860,
      1685620920
    ],
    "values": null
  }
]
GET /v1/monitoring-clusters/metric/pod-running/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "phase": "Succeeded"
    },
    "samples": [
      6,
      6,
      6
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

hashtag
Get cluster pod CPU usage Top 5 trend (Core)

get

Get the per-minute trend of the CPU usage for the top 5 pods in the cluster with the highest CPU usage.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/pod-cpu-top/result/transition
200

OK

GET /v1/monitoring-clusters/metric/pod-cpu-top/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "namespace": "cocktail-system",
      "pod": "cocktail-api-cmdb-0",
      "workload": "cocktail-api-cmdb"
    },
    "samples": [
      0.21448,
      0.18462,
      0.15429
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

hashtag
Get cluster pod Memory usage Top 5 trend (Byte)

get

Get the per-minute trend of the memory usage for the top 5 pods in the cluster with the highest memory usage.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/pod-memory-top/result/transition
200

OK

GET /v1/monitoring-clusters/metric/pod-memory-top/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "namespace": "cocktail-system",
      "pod": "cocktail-api-cmdb-0",
      "workload": "cocktail-api-cmdb"
    },
    "samples": [
      1815183360,
      1817915392,
      1820692480
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]

hashtag
Get cluster CPU usage trend (Core)

get

Get the total CPU usage per minute of the cluster.

Query parameters
clusterIdsstringRequired
startstringRequired

Start date for the query

endstringRequired

End date for the query

Responses
chevron-right
200

OK

*/*
get
/v1/monitoring-clusters/metric/cpu/result/transition
200

OK

GET /v1/monitoring-clusters/metric/cpu/result/transition?clusterIds=text&start=text&end=text HTTP/1.1
Accept: */*
[
  {
    "metrics": {
      "cluster": "thingcluster",
      "measure": "usage-cpu"
    },
    "samples": [
      6.05478,
      6.39511,
      6.44867
    ],
    "timestamps": [
      1687741080,
      1687741140,
      1687741200
    ],
    "values": null
  }
]