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 LoggingMetercreate(EventBus eventBus, LoggingMeterConfig config) reactor.core.publisher.Mono<Void> start()Starts the meter if it hasn't been started, might be a noop depending on the implementation.reactor.core.publisher.Mono<Void> 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:MeterCreates a new value recorder.- Specified by:
valueRecorderin 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:MeterStarts the meter if it hasn't been started, might be a noop depending on the implementation. -
stop
Description copied from interface:MeterStops the metrics if it has been started previously, might be a noop depending on the implementation.
-