Return-Path: X-Original-To: apmail-incubator-chukwa-dev-archive@www.apache.org Delivered-To: apmail-incubator-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 4474910E26 for ; Sun, 1 Sep 2013 23:44:52 +0000 (UTC) Received: (qmail 51879 invoked by uid 500); 1 Sep 2013 23:44:51 -0000 Delivered-To: apmail-incubator-chukwa-dev-archive@incubator.apache.org Received: (qmail 51858 invoked by uid 500); 1 Sep 2013 23:44:51 -0000 Mailing-List: contact chukwa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@incubator.apache.org Delivered-To: mailing list chukwa-dev@incubator.apache.org Received: (qmail 51849 invoked by uid 99); 1 Sep 2013 23:44:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Sep 2013 23:44:51 +0000 Date: Sun, 1 Sep 2013 23:44:51 +0000 (UTC) From: "Eric Yang (JIRA)" To: chukwa-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CHUKWA-697) Create a generalized REST API and widget for creating heat map for time series metrics 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-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang updated CHUKWA-697: ----------------------------- Status: Patch Available (was: Open) > Create a generalized REST API and widget for creating heat map for time series metrics > -------------------------------------------------------------------------------------- > > Key: CHUKWA-697 > URL: https://issues.apache.org/jira/browse/CHUKWA-697 > Project: Chukwa > Issue Type: Bug > Components: User Interface > Affects Versions: 0.5.0 > Environment: MacOSX 10.8, Java 6 > Reporter: Eric Yang > Assignee: Eric Yang > Fix For: 0.6.0 > > Attachments: CHUKWA-697.patch, Screen Shot 2013-09-01 at 4.35.32 PM.png > > > It would be nice to monitor some of the metrics as heatmap for visualize resource utilization distribution. For example, cpu usage over time can be visualized with cpu listed in y axis, and time in x axis. This provides the ability to identify the work distribution on the cluster over time. > The rest api for query HBase data can be summarized to: > Request: > {code} > GET /hicc/v1/heatmap/{table}/{family}/{columnPrefix} > {code} > Query parameters: > start = start time > end = end time > max = maximum possible value for a metric > scale = scale the metric to a number than original, such as scaling 0 to 1 to 0% to 100% > height = height of the canvas to calculate y axis scaling of metric series > Response in JSON: > {code} > { > data: [ > { x: 0, y: 0, count: 70 }, > { x: 0, y: 1, count: 90 }, > .. > ], > max: 100, > radius: 10, > series: 10 > } > {code} > Where max is the max possible value. Radius is to scale how big the data point should be. Series is to calculate how many actual series is queried from HBase. > For visualization widget, create a JSP that can draw heatmap on canvas. > {code} > /hicc/jsp/heatmap.jsp > {code} > Query Parameters: > title = Title of the legend > url = REST API to fetch data > width = Width of the visualization > height = Height of the visualization > yLabel = Label of Y Axis -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira