Add a 10 ms bucket for SQL timings
This allows us to calculate quantiles of SQL timings more accurately, instead of a lot of timings being assigned to the 50 ms bucket.
This commit is contained in:
parent
d01e5a04cc
commit
81d8ddf8ca
2 changed files with 6 additions and 1 deletions
5
changelogs/unreleased/tweak-sql-buckets.yml
Normal file
5
changelogs/unreleased/tweak-sql-buckets.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Add a 10 ms bucket for SQL timings
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: changed
|
|
@ -20,7 +20,7 @@ module Gitlab
|
||||||
define_histogram :gitlab_sql_duration_seconds do
|
define_histogram :gitlab_sql_duration_seconds do
|
||||||
docstring 'SQL time'
|
docstring 'SQL time'
|
||||||
base_labels Transaction::BASE_LABELS
|
base_labels Transaction::BASE_LABELS
|
||||||
buckets [0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0]
|
buckets [0.01, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0]
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_transaction
|
def current_transaction
|
||||||
|
|
Loading…
Reference in a new issue