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:
Yorick Peterse 2018-06-11 17:19:51 +02:00
parent 87eb2b6e51
commit 61ae9c4c5b
No known key found for this signature in database
GPG key ID: EDD30D2BEB691AC9
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
title: Adjust SQL and transaction Prometheus buckets
merge_request:
author:
type: other

View file

@ -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

View file

@ -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