diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-05-25 14:01:10 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-05-25 15:05:56 +0200 |
commit | 61d7b7f117ff090f34f882918d55691575d76e55 (patch) | |
tree | 064745920950677723e9c1f1c840d392f8277d1b /app/models/environment.rb | |
parent | 2061414054ce43aa6d53d1be3f602114e5a336d2 (diff) | |
download | gitlab-ce-61d7b7f117ff090f34f882918d55691575d76e55.tar.gz |
Finalize refactoring additional metrics query
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index b4a4f74a8d5..7ab4a23ab16 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -158,7 +158,9 @@ class Environment < ActiveRecord::Base end def additional_metrics - project.monitoring_service.reactive_query(Gitlab::Prometheus::Queries::AdditionalMetricsQuery, self.id) if has_additional_metrics? + if has_additional_metrics? + project.monitoring_service.reactive_query(Gitlab::Prometheus::Queries::AdditionalMetricsQuery.name, self.id, &:itself) + end end # An environment name is not necessarily suitable for use in URLs, DNS |