Fix wrong method call on prometheus histogram

This commit is contained in:
Z.J. van de Weg 2017-08-10 20:05:44 +02:00
parent 0ff2f66425
commit 63ccb76024
No known key found for this signature in database
GPG Key ID: 65F6A8D64A88ABAC
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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