Versions Compared

Key

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

...

Specifically, Ambari server JVM and database (EclipseLink) metric sources have been wired up to be sent send metrics to AMS, and visualized through Grafana dashboards. 

...

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

  • 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

Database Metrics

...