Commit 9ffe258d authored by Pablo Carranza's avatar Pablo Carranza
Browse files

Merge branch 'fix/db-probers-args' into 'master'

Fix DB prober arguments



See merge request !10
parents 6dc469f2 f89bf91a
PATH
remote: .
specs:
gitlab-monitor (0.0.2)
gitlab-monitor (0.0.3)
pg (~> 0.18.4)
sinatra (~> 1.4.7)
......
......@@ -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
......
module GitLab
module Monitor
VERSION = "0.0.2".freeze
VERSION = "0.0.3".freeze
end
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