]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/influx: Only fetch the current time once when gathering data 20494/head
authorWido den Hollander <wido@42on.com>
Wed, 31 Jan 2018 13:43:54 +0000 (14:43 +0100)
committerWido den Hollander <wido@42on.com>
Tue, 20 Feb 2018 08:20:18 +0000 (09:20 +0100)
commit0857d3bcd4175f39582376fb9980cf3f66fa09ce
treed3caf5db548ca275b9d1525321690a3c1b71a082
parentd743b11ee62a8a2585607cc56b1d8e8ade2c3e58
mgr/influx: Only fetch the current time once when gathering data

By fetching the current time once and storing it into a variable
we save a lot of system calls. On large clusters this can be a lot
of system calls.

In addition we also make sure that all points gathered in the same
loop/run have exactly the same timestamp.

Otherwise there will be a difference in time between the items in
InfluxDB which then causes problems when creating graphs with for
example Grafana.

Signed-off-by: Wido den Hollander <wido@42on.com>
src/pybind/mgr/influx/module.py