Class EventProcessorLatencyMonitor

java.lang.Object
org.axonframework.extension.metrics.micrometer.EventProcessorLatencyMonitor
All Implemented Interfaces:
MessageMonitor<EventMessage>

public class EventProcessorLatencyMonitor extends Object implements MessageMonitor<EventMessage>
A MessageMonitor implementation dedicated to EventMessages.

This monitor defines the latency between the EventMessage.timestamp() and the Clock.wallTime(). Doing so, it depicts the latency from when an event was published compared to when an EventProcessor processes the event to clarify how far behind an EventProcessor is.

Do note that a replay (as triggered through StreamingEventProcessor.resetTokens(), for example) will cause this metric to bump up due to the processor handling old events.

Since:
4.1
Author:
Marijn van Zelst, Ivan Dugalic, Allard Buijze