Versions Compared

Key

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

...

NameFunctionalityInterfaceImplementation(s)
Metrics Service
  • Serves as a starting point for the Metrics system.
  • Loads metrics configuration.
  • Initializes the sink. If the sink is not properly initialized (AMS is not yet deployed), it tries to re-initialize every 5 minutes asynchronously.
  • Initializes and starts configured sources.

 

org.apache.ambari.server.metrics.system.MetricsServiceorg.apache.ambari.server.metrics.system.impl.MetricsServiceImpl
Metric Source
  • Any sub-component of Ambari Server that has metrics of interest.
  • Needs subset of metrics configuration corresponding to the source and the Sink to be initialized.
  • Periodically publishes metrics to the Sink.
  • Example - JVM, database etc.
org.apache.ambari.server.metrics.system.MetricsSource

org.apache.ambari.server.metrics.system.impl.JvmMetricsSource

org.apache.ambari.server.metrics.system.impl.DatabaseMetricsSource

Metric Sink
  • Flushes the metrics to an external metrics collection system (Metrics Collector)
org.apache.ambari.server.metrics.system.MetricsSinkorg.apache.ambari.server.metrics.system.impl.AmbariMetricSinkImpl

Configuration

...

/ Enabling

  • To enable Ambari Server metrics, make sure the following config file exists during Ambari Server start/restart -  /All the metrics related configuration are present in the /etc/ambari-server/conf/metrics.properties file. .
  • Currently, only 2 metric sources have been implemented - JVM Metric Source and Database Metric Source.
  • 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.

...