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-corethat extendsAbstractStatusCheckerTarget. Your class must implement thecheckmethod, which should return aStatusobject. - Open the
ep-monitoring.xmlfile atsrc/main/webapp/WEB-INF/spring/monitoringfor the webapp module that you want to modify. - Add beans for each of the new
StatusCheckerTargetclasses to this file. - Add a reference to the bean in either the
readinessCheckerTargetListorlivenessCheckerTargetListin this file, depending on whether this should be a readiness or liveness check, respectively.