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 F0DCA200B40 for ; Fri, 1 Jul 2016 19:12:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF99B160A6D; Fri, 1 Jul 2016 17:12:12 +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 42C06160A4D for ; Fri, 1 Jul 2016 19:12:12 +0200 (CEST) Received: (qmail 72549 invoked by uid 500); 1 Jul 2016 17:12:11 -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 72524 invoked by uid 99); 1 Jul 2016 17:12:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 17:12:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1F2A82C02A3 for ; Fri, 1 Jul 2016 17:12:11 +0000 (UTC) Date: Fri, 1 Jul 2016 17:12:11 +0000 (UTC) From: "Guozhang Wang (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-3753) Add approximateNumEntries() to the StateStore interface for metrics reporting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 17:12:13 -0000 [ https://issues.apache.org/jira/browse/KAFKA-3753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guozhang Wang resolved KAFKA-3753. ---------------------------------- Resolution: Fixed This JIRA has been merged in as PR 1486. > Add approximateNumEntries() to the StateStore interface for metrics reporting > ----------------------------------------------------------------------------- > > Key: KAFKA-3753 > URL: https://issues.apache.org/jira/browse/KAFKA-3753 > Project: Kafka > Issue Type: Improvement > Components: streams > Reporter: Jeff Klukas > Assignee: Jeff Klukas > Priority: Minor > Labels: api > Fix For: 0.10.1.0 > > > As a developer building a Kafka Streams application, I'd like to have visibility into what's happening with my state stores. How can I know if a particular store is growing large? How can I know if a particular store is frequently needing to hit disk? > I'm interested to know if there are existing mechanisms for extracting this information or if other people have thoughts on how we might approach this. > I can't think of a way to provide metrics generically, so each state store implementation would likely need to handle this separately. Given that the default RocksDBStore will likely be the most-used, it would be a first target for adding metrics. > I'd be interested in knowing the total number of entries in the store, the total size on disk and in memory, rates of gets and puts, and hit/miss ratio for the MemoryLRUCache. Some of these numbers are likely calculable through the RocksDB API, others may simply not be accessible. > Would there be value to the wider community in having state stores register metrics? -- This message was sent by Atlassian JIRA (v6.3.4#6332)