Fix gitaly_call_histogram to observe times in seconds correctly

This commit is contained in:
Pawel Chojnacki 2017-12-12 16:54:11 +01:00
parent e391fe1d6d
commit b02db1f493

View file

@ -132,7 +132,7 @@ module Gitlab
self.query_time += duration
gitaly_call_histogram.observe(
current_transaction_labels.merge(gitaly_service: service.to_s, rpc: rpc.to_s),
duration)
duration / 1000.0)
end
def self.current_transaction_labels