Skip to main content
yusaku
Gold ⭐️
October 31, 2015

Use Grafana with Ambari as a Data Source

  • October 5, 2026 at 9:40 AM
  • 6 replies
  • 23444 views
  • Translate All

Grafana is a popular, open-source graph and dashboard builder ( licensed under Apache License, Version 2.0).

Grafana is feature rich; not only does it let users create customizable and shareable dashboards, it also offers templated/scripted dashboards, LDAP integration, multiple data sources, and more.

Out of the box, Grafana supports data sources such as Graphite, OpenTSDB, ElasticSearch, InfluxDB, CloudWatch, and etc.

Luckily, the data source part is pluggable; it was not too difficult to create an Ambari data source for it: https://github.com/u39kun/ambari-grafana

It works for all service metrics currently exposed via Ambari: HDFS, YARN, HBase, Storm, Kafka, Flume, Accumulo, and Ambari Metrics.

It supports typeahead of component names and their associated metrics, as well as aggregation (“avg”, “sum”, “min”, and “max” of metrics across all instances of the specified component).

Host Metrics are not supported yet, but it shouldn't be too difficult to add.

Please visit https://github.com/u39kun/ambari-grafana/blob/master/README.md for detailed and easy-to-follow instructions on how to install and use Grafana with Ambari as a data source.

Note: Development of the Ambari data source in Grafana was done against Ambari 2.1.2 + HDP 2.3.

366-adding-ambari-data-source-to-grafana.png364-select-metric.png363-dashboard.png


adding-ambari-data-source-to-grafana.png

6 replies

yusaku
yusakuAuthor
Gold ⭐️
October 31, 2015

I would be great if someone can play around and come up with useful and practical Grafana dashboards with the Ambari data source. We can publish these so others can import.

Translate
aantonenko
Silver ⭐️
October 31, 2015

Greate idea !!!

Translate
nsabharwal
Gold ⭐️
February 11, 2016

@Mark Petronic

Translate
muanang
Gold ⭐️
May 19, 2016

Thanks @yusaku!

Tried it and it's working. Just had some issues with some components. They're not working (eg KAFKA).

Thanks for the guide!

Translate
thall
Gold ⭐️
May 20, 2016

Ambari 2.2.2 now includes Grafana for metrics visualization. There are also pre-built dashboards for HBase, YARN, and HDFS. You can visualize any of the metrics available in Ambari. See: https://hortonworks.com/blog/advanced-metrics-visualization-dashboarding-apache-ambari/

For more information!

Translate
jeff1
Gold ⭐️
May 20, 2016

Latest / Trunk code for the Grafana DataSource can be found here...

https://github.com/apache/ambari/tree/trunk/ambari-metrics/ambari-metrics-grafana

Translate