From dev-return-21022-archive-asf-public=cust-asf.ponee.io@flink.apache.org Wed Jan 17 16:24:14 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 8CB4518066D for ; Wed, 17 Jan 2018 16:24:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7D960160C35; Wed, 17 Jan 2018 15:24:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C8B1D160C1B for ; Wed, 17 Jan 2018 16:24:13 +0100 (CET) Received: (qmail 70974 invoked by uid 500); 17 Jan 2018 15:24:07 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 70963 invoked by uid 99); 17 Jan 2018 15:24:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2018 15:24:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CEE621A4071 for ; Wed, 17 Jan 2018 15:24:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Fp7U4yukGpdc for ; Wed, 17 Jan 2018 15:24:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D33645F5B4 for ; Wed, 17 Jan 2018 15:24:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A4AA0E01D8 for ; Wed, 17 Jan 2018 15:24:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 08943212FD for ; Wed, 17 Jan 2018 15:24:02 +0000 (UTC) Date: Wed, 17 Jan 2018 15:24:00 +0000 (UTC) From: "Chris Thomson (JIRA)" To: dev@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-8445) hostname used in metric names for taskmanager and jobmanager are not consistent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Chris Thomson created FLINK-8445: ------------------------------------ Summary: hostname used in metric names for taskmanager and job= manager are not consistent Key: FLINK-8445 URL: https://issues.apache.org/jira/browse/FLINK-8445 Project: Flink Issue Type: Bug Components: Metrics Affects Versions: 1.3.1 Environment: I think that this problem is present for metrics repo= rting enabled configurations that include '' as part of the scope for= the metrics.=C2=A0 For example, using Graphite reporting configuration in = flink-conf.yaml below: {code:java} metrics.scope.jm: flink..jobmanager metrics.scope.jm.job: flink..jobmanager. metrics.scope.tm: flink..taskmanager metrics.scope.tm.job: flink..taskmanager. metrics.scope.task: flink..taskmanager... metrics.scope.operator: flink..taskmanager..= . metrics.reporters: graphite metrics.reporter.graphite.class: org.apache.flink.metrics.graphite.Graphite= Reporter ...{code} Reporter: Chris Thomson Enabled Flink metrics reporting using Graphite using system scopes that con= tain '' for both the job manager and task manager.=C2=A0 The resultin= g metrics reported to Graphite use two different representations for ''. For *Task Manager metrics*=C2=A0it uses the *short hostname*=C2=A0(without = the DNS domain).=C2=A0 This is a result of logic in org.apache.flink.runtim= e.taskmanager.TaskManagerLocation constructor that tries to extract the sho= rt hostname from the fully qualified domain name looked up from InetAddress= .getCanonicalHostName(). For *Job Manager metrics*=C2=A0it uses the *fully qualified domain name*=C2= =A0(with the DNS domain). This is a result of there being no logic in org.a= pache.flink.runtime.jobmanager.JobManagerRunner or org.apache.flink.runtime= .rpc.akka.AkkaRpcService to perform equivalent normalization of the fully q= ualified domain name down to the short hostname. Ideally the '' placeholders in the system scopes for the job manager = and task manager related metrics would be replaced with a consistent value = (either the short hostname or the fully qualified domain name).=C2=A0 Even = better if there was a configuration option to decide which one should be us= ed for metric name generation. -- This message was sent by Atlassian JIRA (v7.6.3#76005)