diff options
author | Judy <judynash@microsoft.com> | 2015-02-24 20:50:16 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-02-24 20:50:16 +0000 |
commit | c5ba975ee85521f708ebeec81144347cf1b40fba (patch) | |
tree | d7ee3d182d281d5031b73d9ddffd1783a86af82e /conf/metrics.properties.template | |
parent | 105791e35cee694f3b2ac1e06758650fe44e2c71 (diff) | |
download | spark-c5ba975ee85521f708ebeec81144347cf1b40fba.tar.gz spark-c5ba975ee85521f708ebeec81144347cf1b40fba.tar.bz2 spark-c5ba975ee85521f708ebeec81144347cf1b40fba.zip |
[Spark-5708] Add Slf4jSink to Spark Metrics
Add Slf4jSink to Spark Metrics using Coda Hale's SlfjReporter.
This sends metrics to log4j, allowing spark users to reuse log4j pipeline for metrics collection.
Reviewed existing unit tests and didn't see any sink-related tests. Please advise on if tests should be added.
Author: Judy <judynash@microsoft.com>
Author: judynash <judynash@microsoft.com>
Closes #4644 from judynash/master and squashes the following commits:
57ef214 [judynash] doc clarification and indent fixes
a751a66 [Judy] Spark-5708: Add Slf4jSink to Spark Metrics
Diffstat (limited to 'conf/metrics.properties.template')
-rw-r--r-- | conf/metrics.properties.template | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/metrics.properties.template b/conf/metrics.properties.template index 464c14457e..2e0cb5db17 100644 --- a/conf/metrics.properties.template +++ b/conf/metrics.properties.template @@ -122,6 +122,15 @@ #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 +#*.sink.sl4j.period=1 + +#*.sink.sl4j.unit=minutes + + # Enable jvm source for instance master, worker, driver and executor #master.source.jvm.class=org.apache.spark.metrics.source.JvmSource |