diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-02-07 01:35:57 +0100 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-02-07 01:54:09 +0100 |
commit | 277f7fef2c7369dc9fc8f54f9ad35a2d3086ee2b (patch) | |
tree | 024d6bbfeda59017ac820b8a574bfae647877fb7 /lib/gitlab/prometheus | |
parent | eac8ad6a454fed1bcbf77a4a7eedd0c5e8123f6f (diff) | |
download | gitlab-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.rb | 2 |
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, |