Viewing The Primary Tags For Metrics Persisted By An Application; Viewing The Secondary Tags For Metrics Persisted By An Application - HP HPE VAN SDN Controller 2.7 Administrator's Manual

Table of Contents

Advertisement

Viewing the primary tags for metrics persisted by an application

To list the primary tags associated with 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/primaries\
?name=metric_name"
Optional parameters
Name and value pairs after the ? character, separated by the & character, are optional parameters:
name
The name of the metric.
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/primaries"
Command output
The only primary tag associated with the controller itself in this example is jvm.
{
"primaries":[
"jvm"
]
}

Viewing the secondary tags for metrics persisted by an application

To list the the secondary tags associated with 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/secondaries\
?name=name&primary_tag=primary_tag"
Optional parameters
Name and value pairs after the ? character, separated by the & character, are optional parameters:
name
The name of the metric. The controller lists only the metrics that have a name that matches
the specified value.
primary_tag
The name of the primary tag. The controller lists only the metrics that have a primary 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.
Viewing metric data 145

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HPE VAN SDN Controller 2.7 and is the answer not in the manual?

Table of Contents