2013-07-30 01:09:22 -04:00
|
|
|
# syntax: [instance].sink|source.[name].[options]=[value]
|
2013-07-03 08:31:53 -04:00
|
|
|
|
2013-07-30 01:09:22 -04:00
|
|
|
# This file configures Spark's internal metrics system. The metrics system is
|
|
|
|
# divided into instances which correspond to internal components.
|
|
|
|
# Each instance can be configured to report its metrics to one or more sinks.
|
|
|
|
# Accepted values for [instance] are "master", "worker", "executor", "driver",
|
|
|
|
# and "applications". A wild card "*" can be used as an instance name, in
|
|
|
|
# which case all instances will inherit the supplied property.
|
2013-07-15 22:57:19 -04:00
|
|
|
#
|
2013-07-30 01:09:22 -04:00
|
|
|
# Within an instance, a "source" specifies a particular set of grouped metrics.
|
|
|
|
# there are two kinds of sources:
|
|
|
|
# 1. Spark internal sources, like MasterSource, WorkerSource, etc, which will
|
|
|
|
# collect a Spark component's internal state. Each instance is paired with a
|
|
|
|
# Spark source that is added automatically.
|
|
|
|
# 2. Common sources, like JvmSource, which will collect low level state.
|
|
|
|
# These can be added through configuration options and are then loaded
|
|
|
|
# using reflection.
|
2013-07-15 22:57:19 -04:00
|
|
|
#
|
2013-07-30 01:09:22 -04:00
|
|
|
# A "sink" specifies where metrics are delivered to. Each instance can be
|
|
|
|
# assigned one or more sinks.
|
2013-07-15 22:57:19 -04:00
|
|
|
#
|
2013-07-30 01:09:22 -04:00
|
|
|
# The sink|source field specifies whether the property relates to a sink or
|
|
|
|
# source.
|
2013-07-15 22:57:19 -04:00
|
|
|
#
|
2013-07-30 01:09:22 -04:00
|
|
|
# The [name] field specifies the name of source or sink.
|
2013-07-15 22:57:19 -04:00
|
|
|
#
|
2013-07-30 01:09:22 -04:00
|
|
|
# The [options] field is the specific property of this source or sink. The
|
|
|
|
# source or sink is responsible for parsing this property.
|
2013-07-15 22:57:19 -04:00
|
|
|
#
|
|
|
|
# Notes:
|
2013-07-30 01:09:22 -04:00
|
|
|
# 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.
|
|
|
|
# 3. Wild card properties can be overridden by more specific properties.
|
|
|
|
# For example, master.sink.console.period takes precedence over
|
|
|
|
# *.sink.console.period.
|
2013-07-15 22:57:19 -04:00
|
|
|
# 4. A metrics specific configuration
|
|
|
|
# "spark.metrics.conf=${SPARK_HOME}/conf/metrics.properties" should be
|
2013-07-30 01:09:22 -04:00
|
|
|
# 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.
|
2013-07-15 22:57:19 -04:00
|
|
|
|
|
|
|
# Enable JmxSink for all instances by class name
|
|
|
|
#*.sink.jmx.class=spark.metrics.sink.JmxSink
|
|
|
|
|
|
|
|
# Enable ConsoleSink for all instances by class name
|
2013-07-03 22:11:30 -04:00
|
|
|
#*.sink.console.class=spark.metrics.sink.ConsoleSink
|
|
|
|
|
2013-07-15 22:57:19 -04:00
|
|
|
# Polling period for ConsoleSink
|
2013-07-03 08:31:53 -04:00
|
|
|
#*.sink.console.period=10
|
|
|
|
|
2013-07-15 22:57:19 -04:00
|
|
|
#*.sink.console.unit=seconds
|
|
|
|
|
|
|
|
# Master instance overlap polling period
|
|
|
|
#master.sink.console.period=15
|
|
|
|
|
|
|
|
#master.sink.console.unit=seconds
|
|
|
|
|
|
|
|
# Enable CsvSink for all instances
|
|
|
|
#*.sink.csv.class=spark.metrics.sink.CsvSink
|
|
|
|
|
|
|
|
# Polling period for CsvSink
|
|
|
|
#*.sink.csv.period=1
|
|
|
|
|
|
|
|
#*.sink.csv.unit=minutes
|
|
|
|
|
|
|
|
# Polling directory for CsvSink
|
|
|
|
#*.sink.csv.directory=/tmp/
|
|
|
|
|
|
|
|
# Worker instance overlap polling period
|
|
|
|
#worker.sink.csv.period=10
|
|
|
|
|
|
|
|
#worker.sink.csv.unit=minutes
|
2013-07-03 08:31:53 -04:00
|
|
|
|
2013-07-15 22:57:19 -04:00
|
|
|
# Enable jvm source for instance master, worker, driver and executor
|
2013-07-03 08:31:53 -04:00
|
|
|
#master.source.jvm.class=spark.metrics.source.JvmSource
|
|
|
|
|
|
|
|
#worker.source.jvm.class=spark.metrics.source.JvmSource
|
|
|
|
|
|
|
|
#driver.source.jvm.class=spark.metrics.source.JvmSource
|
|
|
|
|
|
|
|
#executor.source.jvm.class=spark.metrics.source.JvmSource
|
|
|
|
|