Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 67343 invoked from network); 4 Jan 2010 16:11:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2010 16:11:14 -0000 Received: (qmail 9118 invoked by uid 500); 4 Jan 2010 16:11:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 9040 invoked by uid 500); 4 Jan 2010 16:11:13 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 9030 invoked by uid 99); 4 Jan 2010 16:11:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 16:11:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.217.213 as permitted sender) Received: from [209.85.217.213] (HELO mail-gx0-f213.google.com) (209.85.217.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 16:11:06 +0000 Received: by gxk5 with SMTP id 5so14354415gxk.15 for ; Mon, 04 Jan 2010 08:10:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=wJW3dvGPdo1o74ecdSPqw7MUi+5l/Wfr2SAWMjJyDcg=; b=ZNbC9cxFiBDofHcuaaRsiQjTch/ZeiJw285c14+A60O0oqYf60aodeey0dLwVVNWf/ 9gFrDMx52Y/6/eT8PoOsgNYu8ySSyPp3K2hu1wyx15EyqRB69kLNlLpq5ial4bXyRUWj M8/Xc8vi+u/RhJxYHc59icZfOiyJgOoy5nCaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=UHbnXC+PLDH0toCjOxtJ+mY33HhmXbKsDwljSV2g73nOPkSY2ZE6CgUU2lEfCHmoXz Zyh5nPPUiUu69qIQEC7K3x35jQ4evg4n1Mf9RkOKCuaNB48ufbcFjb8KchnAbc4Ca34y xSRbki8F2lJFxOkZe1/iD09Hia4XjcB9QdQh0= MIME-Version: 1.0 Received: by 10.101.136.12 with SMTP id o12mr18817991ann.26.1262621444219; Mon, 04 Jan 2010 08:10:44 -0800 (PST) In-Reply-To: <1bca98391001040242m306043fbld519a70f70f9efc2@mail.gmail.com> References: <1bca98391001040242m306043fbld519a70f70f9efc2@mail.gmail.com> From: Paul Davis Date: Mon, 4 Jan 2010 16:10:24 +0000 Message-ID: Subject: Re: changes in _stats api? To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Matteo, That sounds correct from memory. One or two of those fields only makes sense for the counter style stats like number of requests and such forth. I don't have an environment handy for digging through code till I get back from holiday, but the appropriate sections are in the couch_stats_aggregator.erl in the update and remove functions. HTH, Paul Davis On Mon, Jan 4, 2010 at 10:42 AM, Matteo Caprari wrote: > Hi. > > I'm playing with _stats and noticed that the new api gained a new field "= sum", > which seems to report the exact number of hits in the timespan, a > figure that is absent in previous releases. > > Is this correct? > Other changes I'm overlooking? > > old (0.10) > "GET": { > =A0 =A0 =A0"current": 507, > =A0 =A0 =A0"count": 2443, > =A0 =A0 =A0"mean": 0.20753172329103617, > =A0 =A0 =A0"min": 0, > =A0 =A0 =A0"max": 13, > =A0 =A0 =A0"stddev": 1.2365992967940493, > =A0 =A0 =A0"description": "number of HTTP GET requests" > =A0 =A0}, > > new (0.11) trunk > "GET": { > =A0 =A0 =A0"description": "number of HTTP GET requests", > =A0 =A0 =A0"current": 1, > =A0 =A0 =A0"sum": 1, > =A0 =A0 =A0"mean": 0.017, > =A0 =A0 =A0"stddev": 0.129, > =A0 =A0 =A0"min": 0, > =A0 =A0 =A0"max": 1 > =A0 =A0}, > > > > -- > :Matteo Caprari > matteo.caprari@gmail.com >