Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 49067 invoked from network); 11 Oct 2008 04:39:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2008 04:39:41 -0000 Received: (qmail 83951 invoked by uid 500); 11 Oct 2008 04:39:34 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 83913 invoked by uid 500); 11 Oct 2008 04:39:34 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 83900 invoked by uid 99); 11 Oct 2008 04:39:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 21:39:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 04:38:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 88DEF234C21C for ; Fri, 10 Oct 2008 21:38:44 -0700 (PDT) Message-ID: <2033039319.1223699924559.JavaMail.jira@brutus> Date: Fri, 10 Oct 2008 21:38:44 -0700 (PDT) From: "stack (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3422) Ganglia counter metrics are all reported with the metric name "value", so the counter values can not be seen In-Reply-To: <103653028.1211304955568.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638717#action_12638717 ] stack commented on HADOOP-3422: ------------------------------- Good stuff Brian. 1). Just by way of FYI, see MetricsUtil in same package for how to add logging. Import two classes, then just inside your class opening, add something like: {code} private static final Log LOG = LogFactory.getLog("org.apache.hadoop.util.GangliaContext"); {code} In code, do something like this: LOG.warn("Type is null"); ... and so on. 2). Let me write Jason and see what he was up to with the ThreadLocal. I don't understand. Its not keeping any state so why bother with it. 3). Doesn't your patch also address HADOOP-4137 whereas diff-20080520-1025.txt does not? > Ganglia counter metrics are all reported with the metric name "value", so the counter values can not be seen > ------------------------------------------------------------------------------------------------------------ > > Key: HADOOP-3422 > URL: https://issues.apache.org/jira/browse/HADOOP-3422 > Project: Hadoop Core > Issue Type: Bug > Components: metrics > Affects Versions: 0.18.1 > Reporter: Jason > Attachments: diff-20080520-1025.txt, ganglia-patch-3422-and-4137.patch, ganglia-patch-3422-and-4137.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > The JobInProgress class reports all metrics with the name "value". The FileMetrics class puts all of the tags into the name when reporting the individual values, but the Ganglia Context does not put the tags into the name.. > This patch modifies the context to build names for the counter metrics out of the tag values. This enables the user to see the indivdual counter values with the ganglia web tool, on a per job basis -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.