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 AggregatingMeterConfig
config()
Returns the currently active configuration.Counter
counter(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 AggregatingMeter
create(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.ValueRecorder
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.
-