Customize AMS TTL settings
Customize the configuration properties in Advanced ams-site to configure time-to-live (TTL) for aggregated metrics.
In
, reset TTL values for the following properties:- timeline.metrics.cluster.aggregator.daily.ttl, which controls the daily aggregation TTL and is set by default to two years.
- timeline.metrics.cluster.aggregator.minute.ttl, , which controls minute -level aggregated metrics TTL.
- timeline.metrics.host.aggregator.ttl, which controls host-based precision metrics TTL.
If you are working in an environment prior to Apache Ambari 2.1.2, you should make these settings during installation; otherwise, you must use the HBase shell by running the following command from the Collector host:
/usr/lib/ams-hbase/bin/hbase
--config /etc/ams-hbase/conf shell
After you are connected, update each of the following tables with the TTL value
hbase(main):000:0> alter 'METRIC_RECORD_DAILY', { NAME => '0', TTL
=> 604800}
Map This TTL Property | To This HBase Table |
---|---|
timeline.metrics.cluster.aggregator.daily.ttl | METRIC_AGGREGATE_DAILY |
timeline.metrics.cluster.aggregator.hourly.ttl | METRIC_AGGREGATE_HOURLY |
timeline.metrics.cluster.aggregator.minute.ttl | METRIC_AGGREGATE |
timeline.metrics.host.aggregator.daily.ttl | METRIC_RECORD_DAILY |
timeline.metrics.host.aggregator.hourly.ttl | METRIC_RECORD_HOURLY |
timeline.metrics.host.aggregator.minute.ttl | METRIC_RECORD_MINUTE |
timeline.metrics.host.aggregator.ttl | METRIC_RECORD |