Metrics Collector
Configuration Type | File path | Comment |
---|---|---|
ams-site | /etc/ambari-metrics-collector/conf/ams-site.xml | Settings that control the API daemon and the aggregator threads. |
ams-env | /etc/ambari-metrics-collector/conf/ams-env.sh | Memory / PATH settings for the API daemon |
ams-hbase-site | /etc/ams-hbase/conf/hbase-site.xml /etc/ambari-metrics-collector/conf/hbase-site.xml | Settings for the HBase storage used for the metrics data. |
ams-hbase-env | /etc/ams-hbase/conf/hbase-env.sh | Memory / PATH settings for the HBase storage. Note: In embedded more, the heap memory setting for master and regionserver is summed up as total memory for single HBase daemon. |
Metrics Monitor
Configuration Type | File path | Comment |
---|---|---|
ams-env | /etc/ambari-metrics-monitor/conf/ams-env.sh | Used for log and pid dir modifications, this is the same configuration as above, common to both components. |
metric_groups | /etc/ambari-metrics-monitor/conf/metric_groups.conf | Not available in the UI. Used to control what HOST/SYSTEM metrics are reported. |
metric_monitor | /etc/ambari-metrics-monitor/conf/metric_monitor.ini | Not available in the UI. Settings for the monitor daemon. |
Configuring AMS in distributed mode
In distributed mode, Metric Collector writes go to HDFS of the cluster. Currently distributed mode does not support multi-mode Metric Collector, however the plan is to allow Metric Collector to scale horizontally to allow a multi-node HBase storage layer.
Following steps need to be performed either at install time or after deploy to configure Metric Collector in distributed mode. Note: If configuring after install, the data will not be automatically copied over to HDFS.
- Edit ams-site, set timeline.metrics.service.operation.mode = distributed
- Edit ams-hbase-site,
- Set hbase.rootdir = hdfs://<namenode-host>:8020/amshbase (Note: amshbase here is the directory where metric data will be stored in HDFS)
- Set hbase.cluster.distributed = true