Metrics

Hello all,

do you have any example on how to sue the metrics module ?

Hi Al,

Not a direct code sample, but usages shouldn’t be to difficult.
When using the axon-metrics module you can either go by using the GlobalMetricRegistry, which will create a MetricRegistry to tie your metrics to, or you can instantiate either of the other containing MessageMonitor implementations and tie them to a MetricRegistry.
Your MessageMonitor implementations can then be set to your CommandBus,EventBus and EventProcessor (thus the Subcribing- or Tracking-), which will then be called when a command/event is being handled by either three.
Hope this clarifies it some what.

Cheers,

Steven