Viewing The Application Ids For Applications That Have Persisted Metrics To Disk; Viewing The Metrics Persisted By A Specific Application - HP HPE VAN SDN Controller 2.7 Administrator's Manual

Table of Contents

Advertisement

Viewing the application IDs for applications that have persisted metrics to disk

You use the application ID as input for metrics commands that require an application ID in the
URL.
To list the application IDs for all applications—including those that are part of the controller
itself—that have persisted metric data to disk, 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"
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"
Command output
In this example, only the base controller itself has persisted metric data to disk. The application
id is: com.hp.sdn
This example shows the JSON output as returned by the curl command:
{"apps":[{"app_id":"com.hp.sdn","app_name":"HP VAN SDN Controller"}]}
This example shows the JSON output formatted for readability:
{
"apps":[
{
"app_id":"com.hp.sdn",
"app_name":"HP VAN SDN Controller"
}
]
}

Viewing the metrics persisted by a specific application

To list all of the metrics available for 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 \
?name=name&primary_tag=primary_tag&secondary_tag=secondary_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. If you do not specify a name, the controller lists all metrics.
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.
Viewing metric data 143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents