Class MicrometerResource
java.lang.Object
org.apache.camel.quarkus.component.micrometer.it.MicrometerResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.CamelContext(package private) io.micrometer.core.instrument.MeterRegistry(package private) org.apache.camel.component.micrometer.MicrometerComponent(package private) org.apache.camel.ProducerTemplate(package private) io.micrometer.prometheus.PrometheusMeterRegistry -
Constructor Summary
ConstructorsConstructorDescriptionMicrometerResource(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseannotationsCall(int number) jakarta.ws.rs.core.Responsecounter(int increment) (package private) jakarta.ws.rs.core.ResponseIf 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.jakarta.ws.rs.core.ResponsecounterComposite(int increment) jakarta.ws.rs.core.ResponsecounterCustom(int increment) jakarta.ws.rs.core.Responsegauge(int number) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegetMetricValue(String type, String name, String registry, String tagValues) jakarta.ws.rs.core.Responsehistory()jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsesummarySetValue(int value) jakarta.ws.rs.core.Response
-
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
-
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
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)
-