
Example 13 Primary and secondary tags
Curl equivalent 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>
"
Curl output for app_id=com.hp.sdn
primary_tag=jvm&secondary_tag=memoryHeap):
{"names":["usedBytes","usage","committedBytes"]}
Result
Metric names are specific to JVM heap memory. The UID can be obtained once
the specific metric of interest is identified via the earlier call. Optional query
parameters to filter the output and list the metrics associated with an application
ID may be employed.
221