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 2BF35200CAF for ; Thu, 22 Jun 2017 15:42:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2A82A160BE7; Thu, 22 Jun 2017 13:42:04 +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 6C90B160BE5 for ; Thu, 22 Jun 2017 15:42:03 +0200 (CEST) Received: (qmail 67936 invoked by uid 500); 22 Jun 2017 13:42:02 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 67925 invoked by uid 99); 22 Jun 2017 13:42:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 13:42:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ED679189118 for ; Thu, 22 Jun 2017 13:42:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id o8fnnUXxz2By for ; Thu, 22 Jun 2017 13:42:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E05D45F6C2 for ; Thu, 22 Jun 2017 13:42:00 +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 689A8E0D45 for ; Thu, 22 Jun 2017 13:42:00 +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 1A01A21943 for ; Thu, 22 Jun 2017 13:42:00 +0000 (UTC) Date: Thu, 22 Jun 2017 13:42:00 +0000 (UTC) From: "Stefan Podkowinski (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13598) Active & Completed repair metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Jun 2017 13:42:04 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059409#comment-16059409 ] Stefan Podkowinski commented on CASSANDRA-13598: ------------------------------------------------ Using counters to represent ad-hoc values should be avoided whenever possible. In most cases Gauges will be the better choice, but should only be read on request basis. Counters should be used for metrics only as monotonically increasing values. The issue with metric consumers is that you can't be sure about the polling interval, which could be minutes. In practice, you'd see at most a value "1" for the counter while it's polled once a minute, while actually the counter has been going up and down a couple of times since it was last polled. A better approach would be having two counters "RepairJobsStarted" and "RepairJobsCompleted". You'd only ever increase the counter. The number of active jobs could always be calculated as delta between these two values. > Active & Completed repair metrics > --------------------------------- > > Key: CASSANDRA-13598 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13598 > Project: Cassandra > Issue Type: Improvement > Reporter: Cameron Zemek > Assignee: Cameron Zemek > Priority: Minor > Labels: repairs > Fix For: 4.x > > > There are no metrics to monitor repairs run as co-ordinator. A number of metrics were added with CASSANDRA-13531 but didn't include metrics to monitor if repair is running or how many repairs have ran. > |4.x|[patch|https://github.com/apache/cassandra/compare/instaclustr:trunk...instaclustr:13598-4.x]| > |3.11|[patch|https://github.com/instaclustr/cassandra/compare/cassandra-3.11...instaclustr:13598-3.11]| > |3.0|[patch|https://github.com/instaclustr/cassandra/compare/cassandra-3.0...instaclustr:13598-3.0]| > |2.2|[patch|https://github.com/instaclustr/cassandra/compare/cassandra-2.2...instaclustr:13598-2.2]| -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org