Adjust SQL and transaction Prometheus buckets
This allows us to better calculate Apdex scores, instead of having to use the 0.1 and 1.0 buckets.
This commit is contained in:
parent
87eb2b6e51
commit
61ae9c4c5b
3 changed files with 7 additions and 2 deletions
5
changelogs/unreleased/sql-buckets.yml
Normal file
5
changelogs/unreleased/sql-buckets.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Adjust SQL and transaction Prometheus buckets
|
||||
merge_request:
|
||||
author:
|
||||
type: other
|
|
@ -20,7 +20,7 @@ module Gitlab
|
|||
define_histogram :gitlab_sql_duration_seconds do
|
||||
docstring 'SQL time'
|
||||
base_labels Transaction::BASE_LABELS
|
||||
buckets [0.001, 0.01, 0.1, 1.0, 10.0]
|
||||
buckets [0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0]
|
||||
end
|
||||
|
||||
def current_transaction
|
||||
|
|
|
@ -140,7 +140,7 @@ module Gitlab
|
|||
define_histogram :gitlab_transaction_duration_seconds do
|
||||
docstring 'Transaction duration'
|
||||
base_labels BASE_LABELS
|
||||
buckets [0.001, 0.01, 0.1, 1.0, 10.0]
|
||||
buckets [0.1, 0.25, 0.5, 1.0, 2.5, 5.0]
|
||||
end
|
||||
|
||||
define_histogram :gitlab_transaction_allocated_memory_bytes do
|
||||
|
|
Loading…
Reference in a new issue