diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-08-10 21:05:44 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-08-10 21:05:44 +0300 |
commit | 63ccb760245f6fc9609105e00ac3fea98ece8b83 (patch) | |
tree | 7114e90ed2d494d345b99bf309544be0dccef195 /app | |
parent | 0ff2f664256299e1d7da84632a58fd9c3a712612 (diff) |
Fix wrong method call on prometheus histogram
Diffstat (limited to 'app')
-rw-r--r-- | app/services/ci/register_job_service.rb | 6 | ||||
-rw-r--r-- | app/services/projects/update_pages_service.rb | 4 |
2 files changed, 5 insertions, 5 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 diff --git a/app/services/projects/update_pages_service.rb b/app/services/projects/update_pages_service.rb index 5038155ca31..394b336a638 100644 --- a/app/services/projects/update_pages_service.rb +++ b/app/services/projects/update_pages_service.rb @@ -172,11 +172,11 @@ module Projects end def register_attempt - pages_deployments_total_counter.increase + pages_deployments_total_counter.increment end def register_failure - pages_deployments_failed_total_counter.increase + pages_deployments_failed_total_counter.increment end def pages_deployments_total_counter |