Commit 7cd04e6b authored by Sean McGivern's avatar Sean McGivern

Add Redis timing buckets of 1s and 2s

Most transactions use far less than a second in Redis, but we see some
Sidekiq jobs with p95 timings over half a second, and p99 timings of
over a second. (These values are from structured logging, which records
exact timings.)

Adding these buckets gives us a better picture in Prometheus, too.
parent 735618a4
......@@ -11,8 +11,8 @@ module Gitlab
STORAGES = [ActionCable, Cache, Queues, SharedState].freeze
# Milliseconds represented in seconds (from 1 to 500 milliseconds).
QUERY_TIME_BUCKETS = [0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5].freeze
# Milliseconds represented in seconds (from 1 millisecond to 2 seconds).
QUERY_TIME_BUCKETS = [0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2].freeze
class << self
def detail_store
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment