org.apache.spark.metrics.sink.loganalytics.LogAnalyticsReporter
Builds a LogAnalyticsReporter
with the given properties.
Builds a LogAnalyticsReporter
with the given properties.
a { @link LogAnalyticsReporter}
Convert all the durations to a certain TimeUnit, defaults to TimeUnit.MILLISECONDS
Convert all the durations to a certain TimeUnit, defaults to TimeUnit.MILLISECONDS
unit of duration
{ @code this}
Convert all the rates to a certain TimeUnit, defaults to TimeUnit.SECONDS.
Convert all the rates to a certain TimeUnit, defaults to TimeUnit.SECONDS.
unit of rate
{ @code this}
Allows to configure a special MetricFilter, which defines what metrics are reported
Allows to configure a special MetricFilter, which defines what metrics are reported
metrics filter
{ @code this}
Configure a prefix for each metric name.
Configure a prefix for each metric name. Optional, but useful to identify originator of metric.
prefix for metric name
{ @code this}
Use the given Clock
instance for the time.
Use the given Clock
instance for the time. Usually the default clock is sufficient.
clock
{ @code this}
The log type to send to Log Analytics.
The log type to send to Log Analytics. Defaults to 'SparkMetrics'.
Log Analytics log type
{ @code this}
The workspace id of the Log Analytics workspace
The workspace id of the Log Analytics workspace
Log Analytics workspace id
{ @code this}
The workspace key of the Log Analytics workspace
The workspace key of the Log Analytics workspace
Log Analytics workspace key
{ @code this}
A builder for
LogAnalyticsReporter
instances. Defaults to not using a prefix, using the default clock, converting rates to events/second, converting durations to milliseconds, and not filtering metrics. The default Log Analytics log type is DropWizard