Commit 05373c24 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Fix wrong histograam buckets

parent 1c403459
...@@ -7,7 +7,7 @@ module Gitlab ...@@ -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
......
...@@ -20,7 +20,7 @@ module Gitlab ...@@ -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
......
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