Skip to content

Commit

Permalink
AUT-199 - Adding quantile objectives to signer request timing metric. (
Browse files Browse the repository at this point in the history
…#1106)

statsd used to emit raw metrics for timing. But prometheus per-aggregates these and by default only produces sum and count metrics. This will only give us total timing per step and an average. Specifying the quantiles we want to report and track against.

We really only care about .99 right now. But specifying .5 and .95 so we can analyze data later if needed.
  • Loading branch information
alexcottner authored Jan 31, 2025
1 parent 81107f6 commit d33e4ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ var (
Name: "signer_request_timing",
Namespace: statsNamespace,
Help: "A summary vector for request timing",
Objectives: map[float64]float64{ // the quantiles we want to track
0.5: 0.05,
0.95: 0.01,
0.99: 0.001,
},
}, []string{"step"})

responseStatusCounter = promauto.NewCounterVec(prometheus.CounterOpts{
Expand Down

0 comments on commit d33e4ea

Please sign in to comment.