Just for my reference, this is how I setup ganglia on my ubuntu 12.04.
# Install relevant packages
$ sudo apt-get install ganglia-monitor gmetad ganglia-webfrontend
# Edit /etc/ganglia/gmond.conf by setting the cluster attribute as below
cluster {
name = "local-cluster"
owner = "manku-timma"
latlong = "world"
url = "http://127.0.0.1:9001/ganglia"
}
# List statistics being monitored
$ telnet localhost 8649
# Modification to /etc/apache2/sites-available/default
Alias /ganglia/ "/usr/share/ganglia-webfrontend/"
<Directory "/usr/share/ganglia-webfrontend/">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Restart apache after config change
$ sudo service apache2 restart
# List statistics being stored
$ telnet localhost 8651
# Location of stored statistics
$ ls /var/lib/ganglia/rrds/unspecified/__SummaryInfo__
# In a browser access http://localhost/ganglia to view graphs.
To configure hbase to report metrics:
# Edit hbase/conf/hadoop-metrics.properties with the snippet below.
# For the IP use the mcast_join value from /etc/ganglia/gmond.conf
dfs.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
dfs.period=10
dfs.servers=239.2.11.71:8649
mapred.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
mapred.period=10
mapred.servers=239.2.11.71:8649
jvm.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
jvm.period=10
jvm.servers=239.2.11.71:8649
rpc.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
rpc.period=10
rpc.servers=239.2.11.71:8649
Hbase reports a ton of metrics, so beware.