mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user