diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-08 16:25:17 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-08 16:39:44 +0200 |
commit | aa7cddc4fcd490ccd192d7d04fb67b375705b586 (patch) | |
tree | 6a37fddb1bb94e593514d424e598ed78d131020e /lib/banzai.rb | |
parent | 4d04e91814fefe24c186250b7962a7c9aa918d1f (diff) | |
download | gitlab-ce-metrics-timestamp-precision.tar.gz |
Use more accurate timestamps for InfluxDB.metrics-timestamp-precision
This changes the timestamp of metrics to be more accurate/unique by
using Time#to_f combined with a small random jitter value. This
combination hopefully reduces the amount of collisions, though there's
no way to fully prevent any from occurring.
Fixes gitlab-com/operations#175
Diffstat (limited to 'lib/banzai.rb')
0 files changed, 0 insertions, 0 deletions