Add a finer-grained view for placer latency metrics (#1085)

This is a small tweak to the placer latency stats. If we have a cluster of values
around the 1-2s mark, then having a single relatively broad bucket that captures
the (1s, 10s] range will obscure that. In particular, typical Prometheus quartile
estimates may be distorted by this bucket size.
This commit is contained in:
jan grant
2018-06-25 10:36:46 +01:00
committed by GitHub
parent d1d526039d
commit edf2fc8831

View File

@@ -95,7 +95,7 @@ func RegisterPlacerViews(tagKeys []string) {
createView(placedOKCountMeasure, view.Count(), tagKeys),
createView(retryTooBusyCountMeasure, view.Count(), tagKeys),
createView(retryErrorCountMeasure, view.Count(), tagKeys),
createView(placerLatencyMeasure, view.Distribution(1, 10, 25, 50, 200, 1000, 10000, 60000), tagKeys),
createView(placerLatencyMeasure, view.Distribution(1, 10, 25, 50, 200, 1000, 1500, 2000, 2500, 3000, 10000, 60000), tagKeys),
)
if err != nil {
logrus.WithError(err).Fatal("cannot create view")