List available metrics
Get a list of metric definitions with their units, dimensions, names, and other values.
The default format is JSON. The servlet will use the HTTP Accept header if no specific format is specified.
URL |
|
Method |
GET |
Formats |
JSON, XML |
Query parameters |
Limits the results to metrics whose names contain a matching substring. The search is not case-sensitive.
Limits the results to the metrics of the specified type. Possible values include the following:
Limits the results to the metrics within the specified group. Possible values include the following:
Limits the result to metrics that uses the specified instance types as sources. Possible values include the following:
Limits the results to metrics that provides the specified statistics. Possible values include the following: |
Example
All metrics in JSON format.
curl \
-X GET \
https://<metricsServerHost>:8080/api/v1/metrics.json
All count type metrics in the “PingDirectory Server Backend” group providing either count or average statistics:
curl \
-X GET \
https://<metricsServerHost>:8080/api/v1/metrics.json?type=count&group=ds
%20backend&statistic=count&statistic=average
Spaces in parameter values can be encoded as |
Response Code |
200 0K |
Response Body |
|