You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use these stats to generate prometheus metrics for each backend.
What's required for this one? Is the plan to use the metrics coming out of v0.6.0 of the hedge requests client in place of the timers we're manually capturing?
Thanks for the interest @josephwoodward. Based on the way hedgedhttp added metrics it seems like the most straightforward way to do this would be to start a goroutine that wakes up every 10 seconds or so calls Stats.Snapshot() and records the desired metrics as Prometheus metrics.
I would also see this as an opportunity to consolidate our client metrics and hedged http code. We basically have the same code copy/pasted 3 times for instrumentation.
Personally the only metric I'm interested in is the number of "extra" requests that were required due to hedging.
#750 added Hedged requests to GCS/S3/Azure backends.
There was a discussion on the PR to add metrics for tracking the performance of hedged requests, and the corresponding stats have been introduced in the hedgedhttp library in the latest release - https://github.com/cristalhq/hedgedhttp/releases/tag/v0.6.0
Use these stats to generate prometheus metrics for each backend.
The text was updated successfully, but these errors were encountered: