AMS Architecture
AMS has three primary components: Metrics Monitors, Hadoop Sinks, Metrics Collector, and Grafana.
The Metrics Monitors are installed and run on each host in the cluster to collect system-level metrics and publish to the Metrics Collector.
The Hadoop Sinks plug into the various Hadoop components to publish Hadoop metrics to the Metrics Collector.
The Metrics Collector is a daemon that runs on a specific host in the cluster and receives data from the registered publishers, the Monitors and Sinks.
The Grafana is a daemon that runs on a specific host in the cluster and serves pre-built dashboards for visualizing metrics collected in the Metrics Collector.
The following diagram provides a high-level illustration of how the components of AMS work together to collect metrics and make those metrics available to Ambari.