From 1c5f374c1aefcc608e2da6621a9ce9bf568515b8 Mon Sep 17 00:00:00 2001 From: Michael Baird Date: Thu, 18 May 2017 16:40:18 -0500 Subject: [PATCH] lower the StatsD sampling rate --- fragment.go | 2 +- handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fragment.go b/fragment.go index 2a4154736..0b209f218 100644 --- a/fragment.go +++ b/fragment.go @@ -407,7 +407,7 @@ func (f *Fragment) setBit(rowID, columnID uint64) (changed bool, err error) { // Update the cache. f.cache.Add(rowID, bm.Count()) - f.stats.Count("setBit", 1, 1.0) + f.stats.Count("setBit", 1, 0.001) return changed, nil } diff --git a/handler.go b/handler.go index dbc0882c3..4ef600294 100644 --- a/handler.go +++ b/handler.go @@ -159,7 +159,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { statsTags = append(statsTags, "useragent:"+r.UserAgent()) stats := h.Holder.Stats.WithTags(statsTags...) - stats.Histogram("http."+endpointName, float64(dif), 1.0) + stats.Histogram("http."+endpointName, float64(dif), 0.1) } func (h *Handler) handleWebUI(w http.ResponseWriter, r *http.Request) {