aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2013-09-08 10:47:45 -0700
committerPatrick Wendell <pwendell@gmail.com>2013-09-08 13:46:28 -0700
commitc190b48bf5073b3349b5060c324c890d95bc4260 (patch)
tree3d0a16a75827ad0b449bd3a7b9479ab5ef9e788e /conf
parent8de8ee5d3cf01fd225336064d9586380a4fb6ad4 (diff)
downloadspark-c190b48bf5073b3349b5060c324c890d95bc4260.tar.gz
spark-c190b48bf5073b3349b5060c324c890d95bc4260.tar.bz2
spark-c190b48bf5073b3349b5060c324c890d95bc4260.zip
Adding more docs and some code cleanup
Diffstat (limited to 'conf')
-rw-r--r--conf/metrics.properties.template36
1 files changed, 35 insertions, 1 deletions
diff --git a/conf/metrics.properties.template b/conf/metrics.properties.template
index 6c36f3cca4..f0e033eb98 100644
--- a/conf/metrics.properties.template
+++ b/conf/metrics.properties.template
@@ -31,7 +31,7 @@
# 1. To add a new sink, set the "class" option to a fully qualified class
# name (see examples below).
# 2. Some sinks involve a polling period. The minimum allowed polling period
-# is 1 second.
+# is 1 second.
# 3. Wild card properties can be overridden by more specific properties.
# For example, master.sink.console.period takes precedence over
# *.sink.console.period.
@@ -47,6 +47,40 @@
# instance master and applications. MetricsServlet may not be configured by self.
#
+## List of available sinks and their properties.
+
+# org.apache.spark.metrics.sink.ConsoleSink
+# Name: Default: Description:
+# period 10 Poll period
+# unit seconds Units of poll period
+
+# org.apache.spark.metrics.sink.CSVSink
+# Name: Default: Description:
+# period 10 Poll period
+# unit seconds Units of poll period
+# directory /tmp Where to store CSV files
+
+# org.apache.spark.metrics.sink.GangliaSink
+# Name: Default: Description:
+# host NONE Hostname or multicast group of Ganglia server
+# port NONE Port of Ganglia server(s)
+# period 10 Poll period
+# unit seconds Units of poll period
+# ttl 1 TTL of messages sent by Ganglia
+# mode multicast Ganglia network mode ('unicast' or 'mulitcast')
+
+# org.apache.spark.metrics.sink.JmxSink
+
+# org.apache.spark.metrics.sink.MetricsServlet
+# Name: Default: Description:
+# path VARIES* Path prefix from the web server root
+# sample false Whether to show entire set of samples for histograms ('false' or 'true')
+#
+# * Default path is /metrics/json for all instances except the master. The master has two paths:
+# /metrics/aplications/json # App information
+# /metrics/master/json # Master information
+
+## Examples
# Enable JmxSink for all instances by class name
#*.sink.jmx.class=spark.metrics.sink.JmxSink