From 8ec88a6cb0f9dad6a0c18cc89d17b89e3bb6a3b4 Mon Sep 17 00:00:00 2001 From: abhinavdangeti Date: Thu, 25 May 2017 16:30:34 -0700 Subject: [PATCH] MB-24560: Add moss store|collection histograms to stats --- index/store/moss/stats.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index/store/moss/stats.go b/index/store/moss/stats.go index 9eda1f2c..4a649361 100644 --- a/index/store/moss/stats.go +++ b/index/store/moss/stats.go @@ -44,6 +44,12 @@ func (s *stats) statsMap() map[string]interface{} { ms["kv"] = s.s.llstats() } + if msw, ok := s.s.llstore.(*mossStoreWrapper); ok { + ms["store_histograms"] = msw.Actual().Histograms().String() + } + + ms["coll_histograms"] = s.s.ms.Histograms().String() + return ms }