Class MetricsControlPanel
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<MetricsControlPanel.MetricsBody>
io.micronaut.controlpanel.panels.management.MetricsControlPanel
- All Implemented Interfaces:
ConfigurableControlPanel, ControlPanel<MetricsControlPanel.MetricsBody>, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable
@Singleton
@Requires(beans=io.micronaut.configuration.metrics.management.endpoint.MetricsEndpoint.class) @Requires(property="micronaut.control-panel.panels.metrics.enabled",notEquals="false")
public class MetricsControlPanel
extends AbstractControlPanel<MetricsControlPanel.MetricsBody>
Control panel that displays Micrometer metric names and details.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBody model for the metrics panel summary.Nested classes/interfaces inherited from interface ControlPanel
ControlPanel.Category, ControlPanel.View -
Field Summary
FieldsFields inherited from class AbstractControlPanel
configuration, controlPanelNameFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionMetricsControlPanel(io.micronaut.configuration.metrics.management.endpoint.MetricsEndpoint endpoint, ControlPanelConfiguration configuration) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ControlPanel
getBodyView, getCategory, getDetailedView, getDetailLinkName, hasDetails
-
Field Details
-
NAME
- See Also:
-
ENABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
MetricsControlPanel
public MetricsControlPanel(io.micronaut.configuration.metrics.management.endpoint.MetricsEndpoint endpoint, @Named("metrics") ControlPanelConfiguration configuration)
-
-
Method Details
-
getBody
Description copied from interface:ControlPanelUsed to render the body of the control panel.- Returns:
- the body of the control panel.
-
getBadge
Description copied from interface:ControlPanelBadge text to be displayed in the header of the card UI element.- Returns:
- the badge text of the control panel.
-