diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-08-10 20:05:44 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-08-10 20:05:44 +0200 |
commit | 63ccb760245f6fc9609105e00ac3fea98ece8b83 (patch) | |
tree | 7114e90ed2d494d345b99bf309544be0dccef195 /app/services/ci/register_job_service.rb | |
parent | 0ff2f664256299e1d7da84632a58fd9c3a712612 (diff) | |
download | gitlab-ce-63ccb760245f6fc9609105e00ac3fea98ece8b83.tar.gz |
Fix wrong method call on prometheus histogramzj-fix-prom-metrics
Diffstat (limited to 'app/services/ci/register_job_service.rb')
-rw-r--r-- | app/services/ci/register_job_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/ci/register_job_service.rb b/app/services/ci/register_job_service.rb index fc87bd6a659..414f672cc6a 100644 --- a/app/services/ci/register_job_service.rb +++ b/app/services/ci/register_job_service.rb @@ -85,13 +85,13 @@ module Ci end def register_failure - failed_attempt_counter.increase - attempt_counter.increase + failed_attempt_counter.increment + attempt_counter.increment end def register_success(job) job_queue_duration_seconds.observe({ shared_runner: @runner.shared? }, Time.now - job.created_at) - attempt_counter.increase + attempt_counter.increment end def failed_attempt_counter |