summaryrefslogtreecommitdiff
path: root/lib/gitlab/prometheus
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-02-07 01:35:57 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2018-02-07 01:54:09 +0100
commit277f7fef2c7369dc9fc8f54f9ad35a2d3086ee2b (patch)
tree024d6bbfeda59017ac820b8a574bfae647877fb7 /lib/gitlab/prometheus
parenteac8ad6a454fed1bcbf77a4a7eedd0c5e8123f6f (diff)
downloadgitlab-ce-277f7fef2c7369dc9fc8f54f9ad35a2d3086ee2b.tar.gz
Make prometheus service querying approach much nicer wrt to arity and default function params
Diffstat (limited to 'lib/gitlab/prometheus')
-rw-r--r--lib/gitlab/prometheus/queries/matched_metrics_query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/prometheus/queries/matched_metrics_query.rb b/lib/gitlab/prometheus/queries/matched_metrics_query.rb
index d21f64a252b..4c3edccc71a 100644
--- a/lib/gitlab/prometheus/queries/matched_metrics_query.rb
+++ b/lib/gitlab/prometheus/queries/matched_metrics_query.rb
@@ -4,7 +4,7 @@ module Gitlab
class MatchedMetricsQuery < BaseQuery
MAX_QUERY_ITEMS = 40.freeze
- def query(_ = nil)
+ def query
groups_data.map do |group, data|
{
group: group.name,