
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"
Command output
This example shows a partial listing of the output from the example command.
The
uid
for a metric is the unique identifier assigned to the metric on the controller.
{
"metrics":[
{
"app_id":"com.hp.sdn",
"type":"RATIO_GAUGE",
"name":"cpuLoadSystem",
"description":"The recent CPU usage of the system.",
"primary_tag":"jvm",
"secondary_tag":"operatingSystem",
"jmx":false,
"persistence":true,
"summary_interval":"ONE",
"uid":"42f65cd8-03c3-4cad-9788-012d513e3c0f"
},
{
"app_id":"com.hp.sdn",
"type":"GAUGE","name":"committedBytes",
"description":"The amount of non-heap memory in bytes committed for the JVM to use.",
"primary_tag":"jvm",
"secondary_tag":"memoryNonHeap",
"jmx":false,
"persistence":true,
"summary_interval":"ONE",
"uid":"b82f5b00-0373-4a23-b5a8-bbda7eec44cb"
},
{
"app_id":"com.hp.sdn",
"type":"GAUGE","name":"countTerminated",
"description":"Number of JVM threads that had exited.",
"primary_tag":"jvm",
"secondary_tag":"threads",
"jmx":false,
"persistence":true,
"summary_interval":"ONE",
"uid":"0e9fe62e-01fd-42e9-88a6-f92021a5e786"
},
.
.
.
{
"app_id":"com.hp.sdn",
"type":"ROLLING_COUNTER",
"name":"count",
"description":"The number of JVM garbage collections actions during the sampling interval.",
"primary_tag":"jvm",
"secondary_tag":"garbageCollection",
"jmx":false,
"persistence":true,
"summary_interval":"ONE",
"uid":"d62c49d4-46b3-4c2c-be60-24f6fa6c6bf6"
},
.
.
.
Metrics returned by the
metrics/apps/
app_id
command
The
metrics/apps/
app_id
command lists all of the metrics available for a specific application.
The list includes all metrics that are currently configured to persist or are no longer configured
to persist but have not yet been removed from disk by the metering framework.
144
Metrics