Class LoggingMeter
- java.lang.Object
-
- com.couchbase.client.core.cnc.metrics.LoggingMeter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingMeterConfigconfig()Returns the currently active configuration.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 LoggingMetercreate(EventBus eventBus, LoggingMeterConfig 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 Detail
-
create
public static LoggingMeter create(EventBus eventBus, LoggingMeterConfig config)
-
config
public LoggingMeterConfig config()
Returns the currently active configuration.
-
counter
public 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.
-
valueRecorder
public ValueRecorder valueRecorder(String name, Map<String,String> tags)
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
public Mono<Void> start()
Description copied from interface:MeterStarts the meter if it hasn't been started, might be a noop depending on the implementation.
-
-