From: Ruben Kerkhof Date: Fri, 5 Aug 2016 11:45:58 +0000 (+0200) Subject: collectd-python(5): make example work out of the box X-Git-Tag: collectd-5.6.0~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d13079a4a43fcfc6318fea206f4d29512d8debe5;p=thirdparty%2Fcollectd.git collectd-python(5): make example work out of the box --- diff --git a/src/collectd-python.pod b/src/collectd-python.pod index 77f3497b6..0202b7742 100644 --- a/src/collectd-python.pod +++ b/src/collectd-python.pod @@ -658,6 +658,8 @@ Any Python module will start similar to: A very simple read function might look like: + import random + def read(data=None): vl = collectd.Values(type='gauge') vl.plugin='python.spam'