Create a SparkCounter that pushes data points to the driver for aggregation.
Create a SparkCounter that pushes data points to the driver for aggregation.
name of the metric
the SparkCounter instance
Create a SparkGauge that pushes data points to the driver for aggregation.
Create a SparkGauge that pushes data points to the driver for aggregation.
name of the metric
the SparkGauge instance
Create a SparkHistogram that pushes data points to the driver for aggregation.
Create a SparkHistogram that pushes data points to the driver for aggregation.
name of the metric
Class of the Reservoir that backs the com.codahale.metrics.Histogram on the driver. By default, it is the com.codahale.metrics.ExponentiallyDecayingReservoir.
the SparkHistogram instance
Initialize the metrics system.
Initialize the metrics system.
Must be invoked in the driver before the SparkContext is started.
app's SparkContext
namespace of metrics used for publishing. By default, it is UserMetrics.
Create a SparkMeter that pushes data points to the driver for aggregation.
Create a SparkMeter that pushes data points to the driver for aggregation.
name of the metric
the SparkMeter instance
Create a SparkTimer that pushes data points to the driver for aggregation.
Create a SparkTimer that pushes data points to the driver for aggregation.
name of the metric
Class of the Reservoir that backs the com.codahale.metrics.Timer on the driver. By default, it is the com.codahale.metrics.ExponentiallyDecayingReservoir.
Class of the Clock that backs the com.codahale.metrics.Timer on the driver. By default, it is the com.codahale.metrics.Clock.UserTimeClock
the SparkTimer instance
Entry point for collecting user-defined metrics.