Commit 0e9fd4e5 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Limit buckets for gitlab_sql_duration_seconds

These are the only buckets we need for alerting, including the -Inf
and +Inf ones.
parent f5ac701e
...@@ -22,7 +22,7 @@ module Gitlab ...@@ -22,7 +22,7 @@ module Gitlab
return if payload[:name] == 'SCHEMA' || IGNORABLE_SQL.include?(payload[:sql]) return if payload[:name] == 'SCHEMA' || IGNORABLE_SQL.include?(payload[:sql])
current_transaction.observe(:gitlab_sql_duration_seconds, event.duration / 1000.0) do current_transaction.observe(:gitlab_sql_duration_seconds, event.duration / 1000.0) do
buckets [0.01, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0] buckets [0.05, 0.1]
end end
increment_db_counters(payload) increment_db_counters(payload)
......
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