Versions Compared

Key

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

...

  • All the metrics related configuration are present in the /etc/ambari-server/conf/metrics.properties file. 
  • To add / remove a metric source to be tracked the following config needs to be modified in the metrics.properties file.
            metric.sources=jvm,database
  •  Source specific configs are discussed in the metrics source section.

Metric Sources

JVM Metrics

...

  • Collects and publishes Ambari Server JVM related metrics using Codahale library. 
  • Metrics collected for GC, Buffers, Threads, Memory and File descriptor
  • To enable this source, add "jvm" to the metric.sources config in metrics.properties and restart Ambari Server.

Configs

Config NameDefault ValueExplanation
source.jvm.class
org.apache.ambari.server.metrics.system.impl.JvmMetricsSource
Class used to collect JVM Metrics.
source.jvm.interval
10Interval, in seconds, used to denote how often metrics should be collected.

...