Skip to content

Commit

Permalink
[Fix] Furthers gcs latency buckets (#6721)
Browse files Browse the repository at this point in the history
* furthers gcs latency buckets
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>

* adjusts bucket upper bound
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>
  • Loading branch information
owen-d authored Jul 20, 2022
1 parent 7f343d2 commit 8daa694
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/storage/chunk/client/gcp/instrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ var (
Name: "gcs_request_duration_seconds",
Help: "Time spent doing GCS requests.",

// GCS latency seems to range from a few ms to a few secs and is
// important. So use 6 buckets from 5ms to 5s.
Buckets: prometheus.ExponentialBuckets(0.005, 4, 6),
// 6 buckets from 5ms to 20s.
Buckets: prometheus.ExponentialBuckets(0.005, 4, 7),
}, []string{"operation", "status_code"})
)

Expand Down

0 comments on commit 8daa694

Please sign in to comment.