Class MicrometerResource

java.lang.Object
org.apache.camel.quarkus.component.micrometer.it.MicrometerResource

@Path("/micrometer") public class MicrometerResource extends Object
  • Field Details

    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
    • meterRegistry

      @Inject io.micrometer.core.instrument.MeterRegistry meterRegistry
    • micrometerCustomComponent

      @Inject @Named("micrometerCustom") org.apache.camel.component.micrometer.MicrometerComponent micrometerCustomComponent
    • prometheusMeterRegistry

      @Inject io.micrometer.prometheus.PrometheusMeterRegistry prometheusMeterRegistry
    • camelContext

      @Inject org.apache.camel.CamelContext camelContext
  • Constructor Details

    • MicrometerResource

      public MicrometerResource(io.micrometer.core.instrument.MeterRegistry meterRegistry)
  • Method Details

    • getMetricValue

      @Path("/metric/{type}/{name}/{registry}") @Produces("application/json") @GET public jakarta.ws.rs.core.Response getMetricValue(@PathParam("type") String type, @PathParam("name") String name, @PathParam("registry") String registry, @QueryParam("tags") String tagValues)
    • counter

      @Path("/counter/{inc}") @GET public jakarta.ws.rs.core.Response counter(@PathParam("inc") int increment)
    • counterCustom

      @Path("/counterCustom/{inc}") @GET public jakarta.ws.rs.core.Response counterCustom(@PathParam("inc") int increment)
    • counterComposite

      @Path("/counterComposite/{inc}") @GET public jakarta.ws.rs.core.Response counterComposite(@PathParam("inc") int increment)
    • counter

      jakarta.ws.rs.core.Response counter(int increment, String route)
      If inc is > 0, MicrometerConstants.HEADER_COUNTER_INCREMENT is used If inc is < 0, MicrometerConstants.HEADER_COUNTER_DECREMENT is used (with positive value) If inc == 0, no header is added.
    • summarySetValue

      @Path("/summary") @GET public jakarta.ws.rs.core.Response summarySetValue(@QueryParam("value") int value)
    • timerStartStop

      @Path("/timer") @GET public jakarta.ws.rs.core.Response timerStartStop()
    • logMessage

      @Path("/log") @GET public jakarta.ws.rs.core.Response logMessage()
    • statistics

      @Path("/statistics") @GET public jakarta.ws.rs.core.Response statistics()
    • history

      @Path("/history") @GET public jakarta.ws.rs.core.Response history()
    • annotationsCall

      @Path("/annotations/call/{number}") @GET public jakarta.ws.rs.core.Response annotationsCall(@PathParam("number") int number)
    • getContextManagemetName

      @Path("/getContextManagementName") @GET public jakarta.ws.rs.core.Response getContextManagemetName() throws Exception
      Throws:
      Exception
    • annotationsCall

      @Path("/sendJmxHistory") @GET public jakarta.ws.rs.core.Response annotationsCall()
    • gauge

      @Path("/gauge/{number}") @GET public jakarta.ws.rs.core.Response gauge(@PathParam("number") int number)