Outline
Ambari Server can be used to manage a few tens of nodes to 1000+ nodes. In large clusters, or clusters with sub-optimal infrastructure, capturing Ambari Server performance can be useful for tuning the server as well as guiding future performance optimization efforts. Through this feature, a Metrics Source-Sink framework has been implemented within the AmbariServer which facilitates fine grained control of the various metric sources as well as eases addition of future metrics sources.
Specifically, Ambari server JVM and database (EclipseLink) metric sources have been wired up to be sent to AMS, and visualized through Grafana dashboards.
Metrics System Terminology
Name | Functionality | Interface | Implementation(s) |
---|---|---|---|
Metrics Service |
| org.apache.ambari.server.metrics.system.MetricsService | org.apache.ambari.server.metrics.system.impl.MetricsServiceImpl |
Metric Source |
| 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 |
| org.apache.ambari.server.metrics.system.MetricsSink | org.apache.ambari.server.metrics.system.impl.AmbariMetricSinkImpl |
Configuration
Metric Sources
JVM Metrics
Database Metrics
Disabling Ambari Server metrics globally
- Add the following config to /etc/ambari-server/conf/ambari.properties
ambariserver.metrics.disable=true
- Restart Ambari Server
Related JIRA