tree: 3a3ed21ba7ebc7679b1a22077ec85873d35a9b0f [path history] [tgz]
  1. ambari-metrics/
  2. conf/
  3. screenshots/
  4. src/
  5. pom.xml

AMS (Ambari Metrics Service) Datasource Plugin for Grafana

Use ambari-metrics to visualize metrics exposed via AMS in Grafana.

If you already have Ambari Metrics UI as a part of your AMS Install, go here to get started


Full Dashboard

Install Grafana

You can install Grafana on any host. It does not need to be co-located with Ambari Metrics Collector. The only requirement is that it has network access to Ambari Metrics Collector.

Install on CentOS/Red Hat:

sudo yum install

Install on Ubuntu/Debian:

sudo apt-get install -y adduser libfontconfig
sudo dpkg -i grafana_2.6.0_amd64.deb

Install on SUSE/SLES:

sudo rpm -i --nodeps grafana-2.6.0-1.x86_64.rpm

Deploy ambari-metrics

On your Grafana Server

cp -R ambari/ambari-metrics/ambari-metrics-grafana/ambari-metrics /usr/share/grafana/public/app/plugins/datasource

Start Grafana

sudo service grafana-server start

Access Grafana


Add Ambari Metrics Datasource in Grafana UI

Add a Datasource

  • Click on “Datasources”
  • Click on “Add New” at the top


Add a Datasource (continued)

  1. Name of your Datasource
  2. Type = AmbariMetrics
  3. Host+Port of your AMS installation. (usually host:6188)
    • No trailing slashes
    • Nothing else needs to be changed
    • Click on Save.


Test your Datasource

To make sure it's all working, click on Test Connection and you should see a message that says “Data source is working”.


Creating a Dashboard

To create a dashboard

  • Click on Dashboards on the left
  • Click on “Home”
  • Click on New at the bottom of the dropdown

Dashboard Dropdown

To add a panel to your newly created dashboard

  • Click on the green button on the left(see image below)
  • This will expand a flyout menu that will allow you to add a panel
  • Choose Graph / Table / Single Stat