Class IgniteStorageMetrics
java.lang.Object
com.broadleafcommerce.common.extension.cache.IgniteStorageMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class IgniteStorageMetrics
extends Object
implements io.micrometer.core.instrument.binder.MeterBinder
Add some ignite specific cache metrics to micrometer output on interval.
-
Constructor Summary
ConstructorDescriptionIgniteStorageMetrics
(org.apache.ignite.Ignite ignite, String region, long metricsRefreshFrequencyMillis, Iterable<io.micrometer.core.instrument.Tag> tags) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindTo
(io.micrometer.core.instrument.MeterRegistry registry) static IgniteStorageMetrics
monitor
(io.micrometer.core.instrument.MeterRegistry registry, String region, org.apache.ignite.Ignite ignite, long metricsRefreshFrequencyMillis, String... tags) void
refresh
(org.apache.ignite.DataRegionMetrics newMetrics) void
unregister
(io.micrometer.core.instrument.MeterRegistry registry)
-
Constructor Details
-
IgniteStorageMetrics
-
-
Method Details
-
monitor
public static IgniteStorageMetrics monitor(io.micrometer.core.instrument.MeterRegistry registry, String region, org.apache.ignite.Ignite ignite, long metricsRefreshFrequencyMillis, String... tags) -
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindTo
in interfaceio.micrometer.core.instrument.binder.MeterBinder
-
refresh
public void refresh(org.apache.ignite.DataRegionMetrics newMetrics) -
unregister
public void unregister(io.micrometer.core.instrument.MeterRegistry registry)
-