public class HazelcastCacheMetrics extends java.lang.Object implements MeterBinder
| Constructor and Description |
|---|
HazelcastCacheMetrics(com.hazelcast.core.IMap<?,?> cache,
java.lang.String name,
java.lang.Iterable<Tag> tags) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(MeterRegistry registry) |
static <K,V,C extends com.hazelcast.core.IMap<K,V>> |
monitor(MeterRegistry registry,
C cache,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on a Hazelcast cache.
|
static <K,V,C extends com.hazelcast.core.IMap<K,V>> |
monitor(MeterRegistry registry,
C cache,
java.lang.String name,
java.lang.String... tags)
Record metrics on a Hazelcast cache.
|
public HazelcastCacheMetrics(com.hazelcast.core.IMap<?,?> cache,
java.lang.String name,
java.lang.Iterable<Tag> tags)
public static <K,V,C extends com.hazelcast.core.IMap<K,V>> C monitor(MeterRegistry registry, C cache, java.lang.String name, java.lang.String... tags)
registry - The registry to bind metrics to.cache - The cache to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics. Must be an even number of arguments representing key/value pairs of tags.CacheStatspublic static <K,V,C extends com.hazelcast.core.IMap<K,V>> C monitor(MeterRegistry registry, C cache, java.lang.String name, java.lang.Iterable<Tag> tags)
registry - The registry to bind metrics to.cache - The cache to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.CacheStatspublic void bindTo(MeterRegistry registry)
bindTo in interface MeterBinder