1. Configuration
Add starter dependency to your POM (version depends on the REGARDS BOM)
<dependency>
<groupId>fr.cnes.regards.framework</groupId>
<artifactId>amqp-monitoring-regards-starter</artifactId>
</dependency>
2. Autoconfiguration
Starter autoconfigures:
regardsAmqpAppender
is a logback appender. It is responsible to publish some LogEvent to a publisher for the current tenant.IMonitoringLogEvent
is used subcribe to LogEvent form all known tenants.
3. The Metrics module
The Metrics module define a subscriber to subscribe to the LogEvent publish for all the tenants. And for each tenant, each LogEvent are persisted to the tenant's database. The LogEventHandler
implements ILogEventHandler
and define a method handle
.