[{"label":"Latest (v1.0)","version":"latest"}]
nsx-intelligence-and-application-platform

Get Kubernetes Service Metrics

Description

Returns cpu/memory/disk usage metrics for services such as messaging in Kubernetes

Request

Request

URL

URL


post
https://{api_host}/napp/api/v1/platform/service-usage-metrics
Copy

Request Body

Request Body

KubernetesMetricNameList of mimetype application/json Required

Names of metrics to return.

{
	"metric_names": "CPU_USAGE"
}
metric_names Required

Possible values are: CPU_USAGECPU_CAPACITYMEMORY_USAGE_GBDISK_GBALLOCATED_MEMORY_GBALLOCATED_DISK_GBNETWORK_TRAFFIC_TX_GBNETWORK_TRAFFIC_RX_GBREADYMEMORY_UNDER_PRESSUREDISK_UNDER_PRESSUREPID_UNDER_PRESSURENETWORK_UNAVAILABLE

Authentication

Authentication

This operation uses the following authentication methods.

x_nsx_roles

Scopes: enterprise_admin, auditor, security_engineer, security_op

Response

Response

Response Body

Response Body

200 OK

Returns KubernetesMetricList of type application/json

Service resource usage metrics response

array of KubernetesMetric
metrics Required
Errors

Errors

Error
default

unexpected error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"metric_names":"CPU_USAGE"}' https://{api_host}/napp/api/v1/platform/service-usage-metrics


[{"label":"Latest (v1.0)","version":"latest"}]
nsx-intelligence-and-application-platform
Feedback

Was this page helpful?