Provide a generic HeartbeatAdaptor which can periodically send status reports to a remote http server. The adaptor can be configured with arbitrary number of component status checkers and it will send out a single status report for all components.
Example - to send out the status of chukwa agent as well as a rest interface (in this case chukwa agent rest), we add the following adaptor:
add HeartbeatAdaptor DefaultProcessor (ChukwaStatusChecker, HttpStatusChecker Chukwa.rest.server http://localhost:9090/rest/v1/adaptor) 3 0
This will send out status reports such as -
Additional configuration needed in chukwa-agent-conf.xml
if PipelineConnector is used, add org.apache.hadoop.chukwa.datacollection.writer.HttpWriter to head of pipeline