Class LoggingMeter
java.lang.Object
com.couchbase.client.core.cnc.metrics.LoggingMeter
- All Implemented Interfaces:
Meter
The default metrics implementation which aggregates latency information and emits it at a regular interval.
-
Method Summary
Modifier and TypeMethodDescriptionconfig()
Returns the currently active configuration.Note that since we are not performing any aggregations on the counter type, this pretty much is a NOOP for performance reasons.static LoggingMeter
create
(EventBus eventBus, LoggingMeterConfig config) start()
Starts the meter if it hasn't been started, might be a noop depending on the implementation.Stops the metrics if it has been started previously, might be a noop depending on the implementation.valueRecorder
(String name, Map<String, String> tags) Creates a new value recorder.
-
Method Details
-
create
-
config
Returns the currently active configuration. -
counter
Note that since we are not performing any aggregations on the counter type, this pretty much is a NOOP for performance reasons. -
valueRecorder
Description copied from interface:Meter
Creates a new value recorder.- Specified by:
valueRecorder
in interfaceMeter
- Parameters:
name
- the name of the value recorder.tags
- the tags of the value recorder.- Returns:
- the created value recorder.
-
start
Description copied from interface:Meter
Starts the meter if it hasn't been started, might be a noop depending on the implementation. -
stop
Description copied from interface:Meter
Stops the metrics if it has been started previously, might be a noop depending on the implementation.
-