You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "shreyas subramanya (JIRA)" <ji...@apache.org> on 2015/02/18 00:03:12 UTC

[jira] [Updated] (CHUKWA-737) Add heartbeat adaptor to push chukwa agent status to remote http server

     [ https://issues.apache.org/jira/browse/CHUKWA-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

shreyas subramanya updated CHUKWA-737:
--------------------------------------
    Description: 
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 with 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 -
{"time":1424213621629,"components":[{"host":"host.example.com","component":"Chukwa.Agent","adaptor.count":1},"status":"running","component":"Chukwa.rest.server","uri":"http:\/\/localhost:9090\/rest\/v1"}]}

Additional configuration needed in chukwa-agent-conf.xml
chukwa.http.writer.host
chukwa.http.writer.port
if PipelineConnector is used, add org.apache.hadoop.chukwa.datacollection.writer.HttpWriter to head of pipeline

  was:
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 with 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 -
{"time":1424213621629,"components":[{"host":"host.example.com","component":"Chukwa.Agent","adaptor.count":1},"status":"running","component":"Chukwa.rest.server","uri":"http:\/\/localhost:9090\/rest\/v1"}]}

Additional configuration needed in chukwa-agent-conf.xml
chukwa.http.writer.host
chukwa.http.writer.port
if PipelineConnector is used, add org.apache.hadoop.chukwa.datacollection.writer.HttpWriter to head of pipeline


> Add heartbeat adaptor to push chukwa agent status to remote http server 
> ------------------------------------------------------------------------
>
>                 Key: CHUKWA-737
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-737
>             Project: Chukwa
>          Issue Type: Improvement
>          Components: Data Collection
>    Affects Versions: 0.7.0
>            Reporter: shreyas subramanya
>            Assignee: shreyas subramanya
>
> 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 with 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 -
> {"time":1424213621629,"components":[{"host":"host.example.com","component":"Chukwa.Agent","adaptor.count":1},"status":"running","component":"Chukwa.rest.server","uri":"http:\/\/localhost:9090\/rest\/v1"}]}
> Additional configuration needed in chukwa-agent-conf.xml
> chukwa.http.writer.host
> chukwa.http.writer.port
> if PipelineConnector is used, add org.apache.hadoop.chukwa.datacollection.writer.HttpWriter to head of pipeline



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)