lower the StatsD sampling rate

This commit is contained in:
Michael Baird 2017-05-18 16:40:18 -05:00
parent c41f695e74
commit 1c5f374c1a
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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) {