Package org.infinispan.metrics.impl
Interface CustomMetricsSupplier
- All Known Subinterfaces:
TakeOfflineManager
- All Known Implementing Classes:
DefaultTakeOfflineManager,NoOpTakeOfflineManager,RpcManagerImpl,XSiteAdminOperations
public interface CustomMetricsSupplier
Interface to implement if the class want to register more metrics to Micrometer than the methods annotated with
ManagedAttribute.
The main goal is to allow some dynamic metrics (i.e. metrics that depends on some configuration). As an example, the Cross-Site response time for each configured site.
MetricUtils.createGauge(String, String, Function) or MetricUtils.createTimer(String, String, BiConsumer) can be used to create this custom metrics.
- Since:
- 13.0
- Author:
- Pedro Ruivo
-
Method Summary
-
Method Details
-
getCustomMetrics
Collection<MBeanMetadata.AttributeMetadata> getCustomMetrics()- Returns:
- A list of
MBeanMetadata.AttributeMetadatato be registered.
-