Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-02-07 03:35:57 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2018-02-07 03:54:09 +0300
commit277f7fef2c7369dc9fc8f54f9ad35a2d3086ee2b (patch)
tree024d6bbfeda59017ac820b8a574bfae647877fb7 /lib
parenteac8ad6a454fed1bcbf77a4a7eedd0c5e8123f6f (diff)
Make prometheus service querying approach much nicer wrt to arity and default function params
Diffstat (limited to 'lib')
-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,