Fix wrong histograam buckets

This commit is contained in:
Pawel Chojnacki 2018-01-22 14:18:34 +01:00
parent 1c403459ca
commit 05373c2490
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ module Gitlab
define_histogram :gitlab_view_rendering_duration_seconds do define_histogram :gitlab_view_rendering_duration_seconds do
docstring 'View rendering time' docstring 'View rendering time'
base_labels Transaction::BASE_LABELS.merge({ path: nil }) base_labels Transaction::BASE_LABELS.merge({ path: nil })
buckets [0.001, 0.01, 0.1, 10.0] buckets [0.001, 0.01, 0.1, 1, 10.0]
with_feature :prometheus_metrics_view_instrumentation with_feature :prometheus_metrics_view_instrumentation
end end

View file

@ -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.001, 0.01, 0.1, 10.0] buckets [0.001, 0.01, 0.1, 1.0, 10.0]
end end
def current_transaction def current_transaction