Class MetricsMpService

  • All Implemented Interfaces:
    MpService

    public class MetricsMpService
    extends Object
    implements MpService
    Extension of microprofile Server to enable support for metrics and metrics REST API. This handles only API of metrics. CDI support is in a separate module.

    To use metrics system, you can either use static methods on (proprietary) RegistryFactory or use CDI annotations.

    • Constructor Detail

      • MetricsMpService

        public MetricsMpService()
    • Method Detail

      • configure

        public void configure​(MpServiceContext serviceContext)
        Description copied from interface: MpService
        Allow the service to add configuration through the context.
        Specified by:
        configure in interface MpService
        Parameters:
        serviceContext - context to obtain Jersey and webserver configuration objects