Fix gitaly_call_histogram to observe times in seconds correctly
This commit is contained in:
parent
e391fe1d6d
commit
b02db1f493
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ module Gitlab
|
||||||
self.query_time += duration
|
self.query_time += duration
|
||||||
gitaly_call_histogram.observe(
|
gitaly_call_histogram.observe(
|
||||||
current_transaction_labels.merge(gitaly_service: service.to_s, rpc: rpc.to_s),
|
current_transaction_labels.merge(gitaly_service: service.to_s, rpc: rpc.to_s),
|
||||||
duration)
|
duration / 1000.0)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.current_transaction_labels
|
def self.current_transaction_labels
|
||||||
|
|
Loading…
Reference in a new issue