aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorBenFradet <benjamin.fradet@gmail.com>2016-01-27 09:27:11 +0000
committerSean Owen <sowen@cloudera.com>2016-01-27 09:27:11 +0000
commit90b0e562406a8bac529e190472e7f5da4030bf5c (patch)
tree85e58518376869a67205a8a08271652495922ca2 /conf
parent4db255c7aa756daa224d61905db745b6bccc9173 (diff)
downloadspark-90b0e562406a8bac529e190472e7f5da4030bf5c.tar.gz
spark-90b0e562406a8bac529e190472e7f5da4030bf5c.tar.bz2
spark-90b0e562406a8bac529e190472e7f5da4030bf5c.zip
[SPARK-12983][CORE][DOC] Correct metrics.properties.template
There are some typos or plain unintelligible sentences in the metrics template. Author: BenFradet <benjamin.fradet@gmail.com> Closes #10902 from BenFradet/SPARK-12983.
Diffstat (limited to 'conf')
-rw-r--r--conf/metrics.properties.template71
1 files changed, 37 insertions, 34 deletions
diff --git a/conf/metrics.properties.template b/conf/metrics.properties.template
index d6962e0da2..8a4f4e4833 100644
--- a/conf/metrics.properties.template
+++ b/conf/metrics.properties.template
@@ -57,39 +57,41 @@
# added to Java properties using -Dspark.metrics.conf=xxx if you want to
# customize metrics system. You can also put the file in ${SPARK_HOME}/conf
# and it will be loaded automatically.
-# 5. MetricsServlet is added by default as a sink in master, worker and client
-# driver, you can send http request "/metrics/json" to get a snapshot of all the
-# registered metrics in json format. For master, requests "/metrics/master/json" and
-# "/metrics/applications/json" can be sent seperately to get metrics snapshot of
-# instance master and applications. MetricsServlet may not be configured by self.
-#
+# 5. The MetricsServlet sink is added by default as a sink in the master,
+# worker and driver, and you can send HTTP requests to the "/metrics/json"
+# endpoint to get a snapshot of all the registered metrics in JSON format.
+# For master, requests to the "/metrics/master/json" and
+# "/metrics/applications/json" endpoints can be sent separately to get
+# metrics snapshots of the master instance and applications. This
+# MetricsServlet does not have to be configured.
## List of available common sources and their properties.
# org.apache.spark.metrics.source.JvmSource
-# Note: Currently, JvmSource is the only available common source
-# to add additionaly to an instance, to enable this,
-# set the "class" option to its fully qulified class name (see examples below)
+# Note: Currently, JvmSource is the only available common source.
+# It can be added to an instance by setting the "class" option to its
+# fully qualified class name (see examples below).
## 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
+# unit seconds Unit of the poll period
# org.apache.spark.metrics.sink.CSVSink
# Name: Default: Description:
# period 10 Poll period
-# unit seconds Units of poll period
+# unit seconds Unit of the 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)
+# host NONE Hostname or multicast group of the Ganglia server,
+# must be set
+# port NONE Port of the Ganglia server(s), must be set
# period 10 Poll period
-# unit seconds Units of poll period
+# unit seconds Unit of the poll period
# ttl 1 TTL of messages sent by Ganglia
# mode multicast Ganglia network mode ('unicast' or 'multicast')
@@ -98,19 +100,21 @@
# 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')
+# 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:
+# * Default path is /metrics/json for all instances except the master. The
+# master has two paths:
# /metrics/applications/json # App information
# /metrics/master/json # Master information
# org.apache.spark.metrics.sink.GraphiteSink
# Name: Default: Description:
-# host NONE Hostname of Graphite server
-# port NONE Port of Graphite server
+# host NONE Hostname of the Graphite server, must be set
+# port NONE Port of the Graphite server, must be set
# period 10 Poll period
-# unit seconds Units of poll period
-# prefix EMPTY STRING Prefix to prepend to metric name
+# unit seconds Unit of the poll period
+# prefix EMPTY STRING Prefix to prepend to every metric's name
# protocol tcp Protocol ("tcp" or "udp") to use
## Examples
@@ -120,42 +124,42 @@
# Enable ConsoleSink for all instances by class name
#*.sink.console.class=org.apache.spark.metrics.sink.ConsoleSink
-# Polling period for ConsoleSink
+# Polling period for the ConsoleSink
#*.sink.console.period=10
-
+# Unit of the polling period for the ConsoleSink
#*.sink.console.unit=seconds
-# Master instance overlap polling period
+# Polling period for the ConsoleSink specific for the master instance
#master.sink.console.period=15
-
+# Unit of the polling period for the ConsoleSink specific for the master
+# instance
#master.sink.console.unit=seconds
-# Enable CsvSink for all instances
+# Enable CsvSink for all instances by class name
#*.sink.csv.class=org.apache.spark.metrics.sink.CsvSink
-# Polling period for CsvSink
+# Polling period for the CsvSink
#*.sink.csv.period=1
-
+# Unit of the polling period for the CsvSink
#*.sink.csv.unit=minutes
# Polling directory for CsvSink
#*.sink.csv.directory=/tmp/
-# Worker instance overlap polling period
+# Polling period for the CsvSink specific for the worker instance
#worker.sink.csv.period=10
-
+# Unit of the polling period for the CsvSink specific for the worker instance
#worker.sink.csv.unit=minutes
# Enable Slf4jSink for all instances by class name
#*.sink.slf4j.class=org.apache.spark.metrics.sink.Slf4jSink
-# Polling period for Slf4JSink
+# Polling period for the Slf4JSink
#*.sink.slf4j.period=1
-
+# Unit of the polling period for the Slf4jSink
#*.sink.slf4j.unit=minutes
-
-# Enable jvm source for instance master, worker, driver and executor
+# Enable JvmSource for instance master, worker, driver and executor
#master.source.jvm.class=org.apache.spark.metrics.source.JvmSource
#worker.source.jvm.class=org.apache.spark.metrics.source.JvmSource
@@ -163,4 +167,3 @@
#driver.source.jvm.class=org.apache.spark.metrics.source.JvmSource
#executor.source.jvm.class=org.apache.spark.metrics.source.JvmSource
-