From 00bccbbe823578bd483dc67bca22838bea79ddcd Mon Sep 17 00:00:00 2001
From: Philip Zeyliger <philip@cloudera.com>
Date: Mon, 15 Jun 2009 18:37:24 -0700
Subject: [PATCH] Example hadoop-metrics.properties works with /metrics (HADOOP-5469).

---
 .../conf.pseudo/hadoop-metrics.properties          |   65 ++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)
 create mode 100644 example-confs/conf.pseudo/hadoop-metrics.properties

diff --git a/example-confs/conf.pseudo/hadoop-metrics.properties b/example-confs/conf.pseudo/hadoop-metrics.properties
new file mode 100644
index 0000000..052b62b
--- /dev/null
+++ b/example-confs/conf.pseudo/hadoop-metrics.properties
@@ -0,0 +1,65 @@
+# Configuration of the "dfs" context for null
+#dfs.class=org.apache.hadoop.metrics.spi.NullContext
+
+# Configuration of the "dfs" context for file
+#dfs.class=org.apache.hadoop.metrics.file.FileContext
+#dfs.period=10
+#dfs.fileName=/tmp/dfsmetrics.log
+
+# Configuration of the "dfs" context for ganglia
+# dfs.class=org.apache.hadoop.metrics.ganglia.GangliaContext
+# dfs.period=10
+# dfs.servers=localhost:8649
+
+# Configuration of the "dfs" context for /metrics
+dfs.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
+
+
+# Configuration of the "mapred" context for null
+#mapred.class=org.apache.hadoop.metrics.spi.NullContext
+
+# Configuration of the "mapred" context for /metrics
+mapred.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
+
+# Configuration of the "mapred" context for file
+#mapred.class=org.apache.hadoop.metrics.file.FileContext
+#mapred.period=10
+#mapred.fileName=/tmp/mrmetrics.log
+
+# Configuration of the "mapred" context for ganglia
+# mapred.class=org.apache.hadoop.metrics.ganglia.GangliaContext
+# mapred.period=10
+# mapred.servers=localhost:8649
+
+
+# Configuration of the "jvm" context for null
+#jvm.class=org.apache.hadoop.metrics.spi.NullContext
+
+# Configuration of the "jvm" context for /metrics
+jvm.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
+
+# Configuration of the "jvm" context for file
+#jvm.class=org.apache.hadoop.metrics.file.FileContext
+#jvm.period=10
+#jvm.fileName=/tmp/jvmmetrics.log
+
+# Configuration of the "jvm" context for ganglia
+# jvm.class=org.apache.hadoop.metrics.ganglia.GangliaContext
+# jvm.period=10
+# jvm.servers=localhost:8649
+
+# Configuration of the "rpc" context for null
+#rpc.class=org.apache.hadoop.metrics.spi.NullContext
+
+# Configuration of the "rpc" context for /metrics
+rpc.class=org.apache.hadoop.metrics.spi.NoEmitMetricsContext
+
+# Configuration of the "rpc" context for file
+#rpc.class=org.apache.hadoop.metrics.file.FileContext
+#rpc.period=10
+#rpc.fileName=/tmp/rpcmetrics.log
+
+# Configuration of the "rpc" context for ganglia
+# rpc.class=org.apache.hadoop.metrics.ganglia.GangliaContext
+# rpc.period=10
+# rpc.servers=localhost:8649
-- 
1.6.0.4

