diff --git conf/hadoop-metrics.properties conf/hadoop-metrics.properties index b348e8b..2060e22 100644 --- conf/hadoop-metrics.properties +++ conf/hadoop-metrics.properties @@ -10,12 +10,15 @@ # GMETADHOST_IP is the hostname (or) IP address of the server on which the ganglia # meta daemon (gmetad) service is running -# Configuration of the "hbase" context for null -hbase.class=org.apache.hadoop.metrics.spi.NullContext +# Configuration of the "hbase" context for NullContextWithUpdateThread +# NullContextWithUpdateThread is a null context which has a thread calling +# periodically when monitoring is started. This keeps the data sampled +# correctly. +hbase.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread +hbase.period=10 # Configuration of the "hbase" context for file # hbase.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext -# hbase.period=10 # hbase.fileName=/tmp/metrics_hbase.log # HBase-specific configuration to reset long-running stats (e.g. compactions) @@ -30,11 +33,11 @@ hbase.extendedperiod = 3600 # hbase.servers=GMETADHOST_IP:8649 # Configuration of the "jvm" context for null -jvm.class=org.apache.hadoop.metrics.spi.NullContext +jvm.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread +jvm.period=10 # Configuration of the "jvm" context for file # jvm.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext -# jvm.period=10 # jvm.fileName=/tmp/metrics_jvm.log # Configuration of the "jvm" context for ganglia @@ -45,11 +48,11 @@ jvm.class=org.apache.hadoop.metrics.spi.NullContext # jvm.servers=GMETADHOST_IP:8649 # Configuration of the "rpc" context for null -rpc.class=org.apache.hadoop.metrics.spi.NullContext +rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread +rpc.period=10 # Configuration of the "rpc" context for file # rpc.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext -# rpc.period=10 # rpc.fileName=/tmp/metrics_rpc.log # Configuration of the "rpc" context for ganglia