
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/apps/com.hp.sdn/secondaries"
Command output
{
"secondaries":[
"nioDirectMemory",
"operatingSystem",
"threads",
"garbageCollection",
"memoryNonHeap",
"memoryHeap",
"memoryTotal",
"nioMappedMemory"
]
}
Viewing the names of metrics persisted by an application
•
To list the names of the metrics persisted by a specific application, 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/apps/app_id/names\
?primary_tag=primary_tag&secondary_tag=secondary_tag"
Optional parameters
Name and value pairs after the
?
character, separated by the
&
character, are optional parameters:
primary_tag
The name of the primary tag. The controller lists only the metrics that have a primary tag that
matches the specified value.
secondary_tag
The name of the primary tag. The controller lists only the metrics that have a secondary tag
that matches the specified value.
If you specify more than one parameter, the controller lists only those metrics that match all the
parameters you specify.
If you do not specify a value for a parameter, the controller does not filter the results based on
that parameter.
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/apps/com.hp.sdn/names"
Command output
This example shows a partial listing of the output from the example command.
{
"names":[
"averageBufferUsedBytes",
"countDeadlocked",
146
Metrics