]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/telegraf: Use generators in Python to streamline output
authorWido den Hollander <wido@42on.com>
Tue, 5 Jun 2018 08:26:59 +0000 (10:26 +0200)
committerWido den Hollander <wido@42on.com>
Fri, 15 Jun 2018 14:40:10 +0000 (16:40 +0200)
commit7a05dd1eb1f8022494906b635a9970d24b98d9b1
tree47b4d084761672ee1cd18e70e38165a0d458a00f
parentc2311e1aebf635660bde2cfddff28743114fff65
mgr/telegraf: Use generators in Python to streamline output

Instead of collection all data in a list prior to sending use
generators inside Python to send out data as soon as the Mgr
has supplied us with the data.

On larger systems with thousands of OSDs this can reduce the
amount of time it takes to collect and send the data.

Telegraf also likes this more as we send less data in one go.

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