Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E31EA200CDF for ; Thu, 17 Aug 2017 11:19:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B48B316A89F; Thu, 17 Aug 2017 09:19:13 +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 0125D16A89E for ; Thu, 17 Aug 2017 11:19:12 +0200 (CEST) Received: (qmail 35057 invoked by uid 500); 17 Aug 2017 09:19:10 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 35045 invoked by uid 99); 17 Aug 2017 09:19:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2017 09:19:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CAF95C00B6 for ; Thu, 17 Aug 2017 09:19:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id C5wwlggzoZ32 for ; Thu, 17 Aug 2017 09:19:08 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C08345F4E5 for ; Thu, 17 Aug 2017 09:19:07 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id f7so7255393lfg.4 for ; Thu, 17 Aug 2017 02:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=F00eVL8g8vjlCKeRTEij8U9VrF0yhIJP+VSLMGPA87g=; b=ttOQIghMMctrfjJsGxBa4bZzM2t9NsXNZhGHdKFRFlpFBy4+E3AITXzq0Q2rztXc3I kB7i4TWwsjCSI/csGUwf5lrM5ctXtBTE1ZfGQKahb9jrYDDorMn4tc5r6AHY+QbrJDjw kqla80ctf/imn/UCpv8dtDZNVhpu7l0emhAOIFqceqR3DHZiDSbvsA29+nEJkMCbcjZz Qh7YiXHzIgnc7qaCItZqUy997bhJ2enTrszSMwaCQtfmuARnEmflBKxJbtQ3FPaJ2l5U tnhDOpa/LmLLTvFX+b8LUT2V/ak2e0gmkMev20mACa38vaQoaYq6TRo4cOkTOp0swShu KHlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=F00eVL8g8vjlCKeRTEij8U9VrF0yhIJP+VSLMGPA87g=; b=SouX1hxApGxCmyXnBjBiGw8r9SvVpxc3YJoEAWCix5SA3P869K2cE/te8me2GH6GjL V/dLlsYMh7wY04cHnYaPhMtU23kDIJQUkJinLVE37KArsbkzTJUz0csu2Z2aSIW9ybj9 AJVIpOsuul27bi/iUEZ5N8TBpvSqvRAwfXbDFEZWYWb6vSM/D1bqIf0T/E9quqrmzSwd 1QCmTtW5i7G7jLKnqRa9bwICBATFFPLpYw3PJtm51JFvmxQTOLtBLExalo1P6PkGoXnO t3XuwoLgufGt89vBvALlN01KN484cKmajPOaPOrx6rWBOkm8miJ8ZAM8dBmlIg6SRSVk g0jw== X-Gm-Message-State: AHYfb5gykszFQ7vccXHkAf42nkutfBIq65PFvO4tPpFRW6FyahFTBxTk ara7DfrEIHa1eehMTXejM5BEzWvStQ== X-Received: by 10.25.18.151 with SMTP id 23mr1526522lfs.95.1502961546473; Thu, 17 Aug 2017 02:19:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.71.207 with HTTP; Thu, 17 Aug 2017 02:19:06 -0700 (PDT) In-Reply-To: References: From: Rajini Sivaram Date: Thu, 17 Aug 2017 10:19:06 +0100 Message-ID: Subject: Re: [DISCUSS] KIP-188 - Add new metrics to support health checks To: dev Content-Type: multipart/alternative; boundary="001a113fb92c16b6b70556ef8140" archived-at: Thu, 17 Aug 2017 09:19:14 -0000 --001a113fb92c16b6b70556ef8140 Content-Type: text/plain; charset="UTF-8" Hi Jun, Thank you for the review. 1. Makes sense. I have updated the KIP. 2. Moved to a new group ZooKeeperClient 3. It is a gauge, so it will have a single attribute called Value with a constant value of 1. Regards, Rajini On Thu, Aug 17, 2017 at 3:16 AM, Jun Rao wrote: > Hi, Rajini, > > Thanks for the KIP. A few comments. > > 1. We have 30+ requests and 30+ error code and growing. So, the combination > can be large. Perhaps it's useful to expire an error metric if it's no > longer updated after some time? We did something similar for the quota > metric. > > 2. It's a bit weird to put the ZK latency metric under > type=SessionExpireListener. > Perhaps it's more intuitive to put it in a separate type. > > 3. For the client version metric, since we representing commit_id and > version as tags in the metric name. So the mbean will have no attributes? > > Jun > > > > On Wed, Aug 16, 2017 at 4:05 PM, Roger Hoover > wrote: > > > I think it would useful to make clear somewhere for each metric, the > level > > at which it's counted. I don't know all the details of the Kafka > protocol > > but it might be something like > > > > ProduceRequest, Fetch Request - counted at per-partition level > > All other requests are 1:1 with client requests? > > > > Cheers, > > > > Roger > > > > On Wed, Aug 16, 2017 at 4:02 PM, Roger Hoover > > wrote: > > > > > Rajini, > > > > > > Thank you for the KIP. These are very helpful additions. One question > > on > > > the error code metrics: > > > > > > Will the total error counting happen at the the level of topic > partition? > > > For example, if a single ProduceRequest contains messages to append to > 3 > > > partitions and say all 3 appends are successful, the counter > > > for kafka.network:type=RequestMetrics,name=ErrorsPerSec,request= > > ProduceRequest,error=0 > > > will be incremented by 3? > > > > > > Thanks, > > > > > > Roger > > > > > > On Wed, Aug 16, 2017 at 12:10 PM, Rajini Sivaram < > > rajinisivaram@gmail.com> > > > wrote: > > > > > >> I have created a KIP to add some additional metrics to support health > > >> checks: > > >> > > >> https://cwiki.apache.org/confluence/display/KAFKA/KIP-188+-+ > > >> Add+new+metrics+to+support+health+checks > > >> > > >> Feedback and suggestions are welcome. > > >> > > >> Regards, > > >> > > >> Rajini > > >> > > > > > > > > > --001a113fb92c16b6b70556ef8140--