Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Following is an illustration of an API call that fetches metrics from the Metrics backend service using Ambari API.

CLUSTER

E.g.: Dashboard metrics : Fetch load average across all nodes of a cluster

...

FieldValueComment
Start time1430844925Start time for the time range. (Epoch)
End time1430848525End time of the time range. (Epoch)
Step15Default step, this is used only for zero padding or null padding if the padding interval cannot be determined from the retrieved data.

 

HOST

E.g.: Host metrics: Get the cpu utilization on a particular host in the cluster

...

The request part of the above API call selects the host which is queried while the predicate part includes the metric names with time range query.

COMPONENT

E.g.: Service metrics: Get the capacity utilization metrics aggregated across all datanodes but only the latest value (point in time)

...

The request part of the above API call selects the service from the cluster while predicate part includes the metrics names.

HOST COMPONENT

E.g.: Daemon metrics: Get the heap memory usage for active Namenode

...