Commit 902a10e4 authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Fix DB probers arguments

parent 6dc469f2
......@@ -25,7 +25,7 @@ module GitLab
# Probes the DB specified by opts[:connection_string] for blocked queries, then converts them to metrics
class BlockedQueriesProber
def initialize(opts, metrics = PrometheusMetrics.new)
def initialize(opts, metrics: PrometheusMetrics.new)
@metrics = metrics
@collector = BlockedQueriesCollector.new(connection_string: opts[:connection_string])
end
......
......@@ -20,7 +20,7 @@ module GitLab
# Probes the DB specified by opts[:connection_string] for slow queries, then converts them to metrics
class SlowQueriesProber
def initialize(opts, metrics = PrometheusMetrics.new)
def initialize(opts, metrics: PrometheusMetrics.new)
@metrics = metrics
@collector = SlowQueriesCollector.new(connection_string: opts[:connection_string])
end
......
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