Plugins for Health Monitoring Tool
Adding New Plugins to Health Monitoring
You can add new plugins that add additional checks that might affect the application’s health. For example, you can create a plugin that interacts with an external integration, such as an ESB (Enterprise Service Bus) or payment gateway.
- Create a new class in
ext-core
that extendsAbstractStatusCheckerTarget
. Your class must implement thecheck
method, which should return aStatus
object. - Open the
ep-monitoring.xml
file atsrc/main/webapp/WEB-INF/spring/monitoring
for the webapp module that you want to modify. - Add beans for each of the new
StatusCheckerTarget
classes to this file. - Add a reference to the bean in either the
readinessCheckerTargetList
orlivenessCheckerTargetList
in this file, depending on whether this should be a readiness or liveness check, respectively.