Overview
The Perfmon REST API provides read access to data stored in the perfmon server. The perfmon server stores data for hundreds of metrics sampled across an AIE cluster. A metric is a type of data being sampled, such as "cpu time". A metric instance a particular example of a metric, such as "the cpu time for host 127.0.0.1". In this case, the host name is a dimension of the cpu time metric. Data samples are associated with metric instances. The Perfmon REST API follows the HATEOAS principle. Each response outside of data responses will provide links for associated data and APIs. The starting-off point for the REST API is http:<perfmonhost:port>/rest (e.g., http://localhost:16960/rest ).
REST API Parameters
The master list of QueryRequest REST parameters is on the HTTP REST APIs page.
View incoming links.
Endpoint URIs
URL | METHOD | Input | Output |
---|---|---|---|
http://<host:16960>/rest | GET | None |
|
http://<host:16960>/rest/metrics | GET | None | Returns response containing a link to this documentation and navigable links to other parts of the API. |
http://<host:16960>/rest/metrics/names | GET | None | List of metric names |
http://<host:16960>/rest/metrics/metric | GET |
| Description for metric name |
http://<host:16960>/rest/metrics/metricInstance | GET |
| Description for the named metric instance, including all dimensions |
http://<host:16960>/rest/metrics/data | GET |
Dates can be specified as a long or using the | Returned data is binned in buckets of length period milliseconds. An unspecified or 0 period returns data at the sample rate for the metric. |
http://<host:16960>/rest/metrics/lastdata | GET |
| Returns the last data sample for each metric |
http://<host:16960>/rest/metrics/data/dateRange | GET | None | Returns an array of longs (length=2), the first and last timestamp across all data stored in perfmon. |
http://<host:16960>/rest/metrics/data/download | GET | None | Downloads a zip file containing the perfmon data directory. This file may then be used as input to the volumetrics and perfmonviewer commands |