Return-Path: X-Original-To: apmail-chukwa-dev-archive@www.apache.org Delivered-To: apmail-chukwa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D22831772B for ; Wed, 18 Feb 2015 06:05:11 +0000 (UTC) Received: (qmail 92074 invoked by uid 500); 18 Feb 2015 06:05:11 -0000 Delivered-To: apmail-chukwa-dev-archive@chukwa.apache.org Received: (qmail 92041 invoked by uid 500); 18 Feb 2015 06:05:11 -0000 Mailing-List: contact dev-help@chukwa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chukwa.apache.org Delivered-To: mailing list dev@chukwa.apache.org Received: (qmail 92029 invoked by uid 99); 18 Feb 2015 06:05:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2015 06:05:11 +0000 Date: Wed, 18 Feb 2015 06:05:11 +0000 (UTC) From: "Eric Yang (JIRA)" To: dev@chukwa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CHUKWA-737) Add heartbeat adaptor to push chukwa agent status to remote http server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CHUKWA-737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325465#comment-14325465 ] Eric Yang commented on CHUKWA-737: ---------------------------------- I think the rest api has moved to v2 in Chukwa 0.6. Could we update the url to v2 instead? > 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 > Attachments: CHUKWA-737.patch > > > 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 - > {"time":1424213867980,"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)