MongoMetrics

pekko.contrib.persistence.mongodb.MongoMetrics
trait MongoMetrics extends MetricsBuilder, BaseBuilder

Builds timers and histograms to record metrics. This class uses either the MetricsBuilder specified by MongoSettings.MongoMetricsBuilderClass or if none is specified DropwizardMetrics will be used.

Attributes

Graph
Supertypes
trait BaseBuilder
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

Concrete methods

override def histogram(name: String): MongoHistogram

Builds a histogram with the given name appended to BaseBuilder.metricBaseName

Builds a histogram with the given name appended to BaseBuilder.metricBaseName

Value parameters

name

The name of the histogram. It will get appended to BaseBuilder.metricBaseName

Attributes

Returns

the histogram.

Definition Classes
override def timer(name: String): MongoTimer

Builds a timer with the given name appended to BaseBuilder.metricBaseName

Builds a timer with the given name appended to BaseBuilder.metricBaseName

Value parameters

name

The name of the timer. It will get appended to BaseBuilder.metricBaseName

Attributes

Returns

the timer.

Definition Classes

Inherited fields

lazy val metricBaseName: MetricName

The base name for all metrics created from this builder.

The base name for all metrics created from this builder.

Attributes

Inherited from:
BaseBuilder