Class JHipsterMetricsEndpoint

java.lang.Object
tech.jhipster.config.metric.JHipsterMetricsEndpoint

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

JHipsterMetricsEndpoint class.

  • Field Details

    • MISSING_NAME_TAG_MESSAGE

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

    • JHipsterMetricsEndpoint

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

      Constructor for JHipsterMetricsEndpoint.

      Parameters:
      meterRegistry - a MeterRegistry object.
  • Method Details

    • 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