Commit 61ae9c4c authored by Yorick Peterse's avatar Yorick Peterse

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.
parent 87eb2b6e
---
title: Adjust SQL and transaction Prometheus buckets
merge_request:
author:
type: other
...@@ -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, 1.0, 10.0] buckets [0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0]
end end
def current_transaction def current_transaction
......
...@@ -140,7 +140,7 @@ module Gitlab ...@@ -140,7 +140,7 @@ module Gitlab
define_histogram :gitlab_transaction_duration_seconds do define_histogram :gitlab_transaction_duration_seconds do
docstring 'Transaction duration' docstring 'Transaction duration'
base_labels BASE_LABELS 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 end
define_histogram :gitlab_transaction_allocated_memory_bytes do define_histogram :gitlab_transaction_allocated_memory_bytes do
......
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