Class AggregatingMeter
java.lang.Object
com.couchbase.client.core.cnc.metrics.AggregatingMeter
- All Implemented Interfaces:
Meter
@Volatile public class AggregatingMeter extends Object implements Meter
The default metrics implementation which aggregates latency information and emits it at a regular interval.
-
Method Summary
Modifier and Type Method Description Countercounter(String name, Map<String,String> tags)Note that since we are not performing any aggregations on the counter type, this pretty much is a NOOP for performance reasons.static AggregatingMetercreate(EventBus eventBus, AggregatingMeterConfig config)Mono<Void>start()Starts the meter if it hasn't been started, might be a noop depending on the implementation.Mono<Void>stop(Duration timeout)Stops the metrics if it has been started previously, might be a noop depending on the implementation.ValueRecordervalueRecorder(String name, Map<String,String> tags)Creates a new value recorder.
-
Method Details
-
create
-
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.
-