Package io.quarkus.runtime.metrics
Interface MetricsFactory
public interface MetricsFactory
Extensions can create or register metrics using this factory
independent of the enabled metrics provider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceA time recorder that tracks elapsed time using incremental updates using a duration with a specified time unit.static enumRegistry type or scope. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault MetricsFactory.MetricBuilderbuilder(String name, MetricsFactory.Type type) booleanmetricsSystemSupported(String name)
-
Field Details
-
MP_METRICS
A well-known string for MicroProfile metrics provided by the SmallRye Metrics quarkus extension- See Also:
-
MICROMETER
A well-known string for Micrometer metrics provided by the Micrometer Metrics quarkus extension- See Also:
-
-
Method Details
-
metricsSystemSupported
- Returns:
- true if this factory supports the named metrics system. Arbitrary strings are allowed. Constants are present for a few.
- See Also:
-
builder
- Parameters:
name- The name of the metric (required)- Returns:
- a fluid builder for registering metrics (default VENDOR type).
- See Also:
-
builder
- Parameters:
name- The name of the metric (required)type- The scope or type of the metric (optional, may not be used)- Returns:
- a fluid builder for registering metrics.
- See Also:
-