Class JHipsterMetricsEndpoint


  • @WebEndpoint(id="jhimetrics")
    public class JHipsterMetricsEndpoint
    extends Object

    JHipsterMetricsEndpoint class.

    • Field Detail

      • MISSING_NAME_TAG_MESSAGE

        public static final String MISSING_NAME_TAG_MESSAGE
        Constant MISSING_NAME_TAG_MESSAGE="Missing name tag for metric {}"
        See Also:
        Constant Field Values
    • Constructor Detail

      • JHipsterMetricsEndpoint

        public JHipsterMetricsEndpoint​(io.micrometer.core.instrument.MeterRegistry meterRegistry)

        Constructor for JHipsterMetricsEndpoint.

        Parameters:
        meterRegistry - a MeterRegistry object.
    • Method Detail

      • allMetrics

        @ReadOperation
        public Map<String,​Map> allMetrics()
        GET /management/jhi-metrics

        Give metrics displayed on Metrics page

        Returns:
        a Map with a String defining a category of metrics as Key and another Map containing metrics related to this category as Value