Ambari metrics is a functional component in Ambari that is responsible for monitoring cluster status. It has some of the following key concepts:
|Ambari Metrics System ("AMS")
||The built-in metrics collection system for Ambari.
||The standalone server, collects metrics, aggregates metrics, serves metrics from the Hadoop service sinks and the MetR ICS Monitor.
|Metrics Hadoop Sinks
||Plugs into the various Hadoop components sinks to send Hadoop metrics to the metrics Collector.
||Installed on all host in the cluster to collect system-level metrics and forward to the metrics Collector.
Simply put, Ambari collects two types of information on the collector:
1. "System level" metrics for each node
2. Metrics for each component of Hadoop
The former is collected by the metrics Monitor (which is the agent) installed on each node, which is collected by sink (the same conceptually and Flume sink) for a particular Hadoop component.
Finally add one by one points, collector is to use HBase to store metrics data.
Configuration configuration Ambari metrics for distributed mode
The default installation is Ambari metrics is embedded mode, so that all collected data is stored locally on the Collector node, and a large amount of metrics data is crowding out a large amount of local storage, which is distributed after the metrics data is placed on the HDFs , so this is usually a necessary operation after installing Ambari. The specific operation can refer to: http://docs.hortonworks.com/HDPDocuments/Ambari-18.104.22.168/bk_ambari_reference_guide/content/_ Configuring_ambari_metrics_for_distributed_mode.html
Configuring the life cycle of metrics data
A large number of metrics occupy very large storage space, it is necessary to set the metrics data retention time (TTL), the control metrics data Retention time parameters in Ams-site.xml, the following are related configuration items:
||1 minute resolution data purge interval. Default is 1 day.
||Host based X minutes resolution data purge interval. Default is 7 days. (X = configurable interval, default interval is 2 minutes)
||Host based hourly resolution data purge interval. Default is.
||Host based daily resolution data purge interval. Default is 1 year.
||Cluster wide minute resolution data purge interval. Default is.
||Cluster wide hourly resolution data purge interval. Default is 1 year.
||Cluster wide daily resolution data purge interval. Default is 2 years.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Ambari Metrics Introduction