From 9f4c295c6fcc18319bf08a7c1c93bd350d9efdb4 Mon Sep 17 00:00:00 2001 From: brkolla Date: Thu, 5 May 2016 09:34:11 -0400 Subject: [PATCH 1/2] Add new metric (histogram) to track number of reads using _bulk_get --- priv/stats_descriptions.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/priv/stats_descriptions.cfg b/priv/stats_descriptions.cfg index c695ae4c..0cb7f9b8 100644 --- a/priv/stats_descriptions.cfg +++ b/priv/stats_descriptions.cfg @@ -58,6 +58,10 @@ {type, counter}, {desc, <<"number of bulk requests">>} ]}. +{[couchdb, httpd, bulk_reads], [ + {type, histogram}, + {desc, <<"distribution of the number of docs in _bulk_gets requests">>} +]}. {[couchdb, httpd, requests], [ {type, counter}, {desc, <<"number of HTTP requests">>} From 415548f1be84fb3c4222d4e4cc16422db246bb0c Mon Sep 17 00:00:00 2001 From: brkolla Date: Thu, 5 May 2016 09:35:37 -0400 Subject: [PATCH 2/2] Export the load_applications_with_stats/0 So that we can use this in adding the unit tests for couch_stats. And allow us to test the new metrics being added. --- src/test_util.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test_util.erl b/src/test_util.erl index 88cfc63e..90cab362 100644 --- a/src/test_util.erl +++ b/src/test_util.erl @@ -20,7 +20,7 @@ -export([start_couch/0, start_couch/1, start_couch/2, stop_couch/0, stop_couch/1]). -export([start_config/1, stop_config/1]). --export([start_applications/1, stop_applications/1]). +-export([load_applications_with_stats/0, start_applications/1, stop_applications/1]). -export([stop_sync/1, stop_sync/2, stop_sync/3]).