
"bufferCapacityBytes",
"count",
"countNew",
"bufferCount",
"countWaiting",
"fileDescriptorsOpen",
"uptimeMs",
"countTerminated",
"elapsedMs",
"countTimedWaiting",
"countDaemon",
.
.
.
"countBlocked",
"committedBytes"
]
}
Viewing information about a persisted metric identified by its UID
•
To list information about a specific metric, which is identified by its UID (unique ID), use the
following curl command:
curl --noproxy controller_ip -X GET \
--header "X-Auth-Token:token" --fail -ksSfL \
--url "https://controller_ip:8443/sdn/v2.0/metrics/metric_uid"
Command example
curl --noproxy 10.1.1.9 -X GET \
--header "X-Auth-Token:3d61f0d3e61349359e6dbd82ec02c113" --fail -ksSfL \
--url "https://10.1.1.9:8443/sdn/v2.0/metrics/431b746e-e62e-4874-a801-b1438eaac635"
Command output
{
"metric":{
"app_id":"com.hp.sdn",
"type":"GAUGE",
"name":"usedBytes",
"description":"The amount of heap memory currently being used by the JVM in bytes.",
"primary_tag":"jvm",
"secondary_tag":"memoryHeap",
"jmx":false,
"persistence":true,
"summary_interval":"ONE",
"uid":"431b746e-e62e-4874-a801-b1438eaac635"
}
}
More information
“Viewing the metrics persisted by a specific application” (page 143)
Viewing the time-series values for a persisted metric identified by its UID
•
To list the time-series values for a specific metric, which is identified by its UID (unique ID),
use the following curl command:
curl --noproxy controller_ip -X GET \
--header "X-Auth-Token:token" --fail -ksSfL \
--url "https://controller_ip:8443/sdn/v2.0/metrics/metric_uid/values\
?start=start&end=end&interval=interval"
Optional parameters
Name and value pairs after the
?
character, separated by the
&
character, are optional parameters:
Viewing metric data
147