Package com.couchbase.client.core.cnc
Interface Meter
-
- All Known Implementing Classes:
LoggingMeter,NoopMeter
@Volatile public interface Meter
The generic interface for all metric implementations in the client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Countercounter(String name, Map<String,String> tags)Creates a new counter.default Mono<Void>start()Starts the meter if it hasn't been started, might be a noop depending on the implementation.default 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
-
counter
Counter counter(String name, Map<String,String> tags)
Creates a new counter.- Parameters:
name- the name of the counter.tags- the tags for the counter.- Returns:
- the created counter.
-
valueRecorder
ValueRecorder valueRecorder(String name, Map<String,String> tags)
Creates a new value recorder.- Parameters:
name- the name of the value recorder.tags- the tags of the value recorder.- Returns:
- the created value recorder.
-
start
default Mono<Void> start()
Starts the meter if it hasn't been started, might be a noop depending on the implementation.
-
-