/clusters/{clusterName}/services/{serviceName}/metrics
Mount Point: /rest/clusters/{clusterName}/services/{serviceName}/metrics
GET
Fetch metric readings for a particular service.
By default, this call will look up all metrics available for the service. If only specific metrics are desired, use the metrics parameter.
By default, the returned results correspond to a 5 minute window based on the provided end time (which defaults to the current server time). The from and to parameters can be used to control the window being queried. A maximum window of 3 hours is enforced.
When requesting a "full" view, aside from the extended properties of the returned metric data, the collection will also contain information about all metrics available for the service, even if no readings are available in the requested window.
HDFS services from CDH4 that have more than one nameservice will not expose any metrics. Instead, the nameservices should be queried separately.
Parameters
name | description | type | default |
---|---|---|---|
serviceName | The name of the service. | path | |
from | Start of the period to query. | query | |
to | End of the period to query. | query | now |
metrics | Filter for which metrics to query. | query | |
view | The view of the data to materialize, either "summary" or "full". | query | summary |
clusterName | (no documentation provided) | path |
Response Body
element: | metricList |
List of readings from the monitors.