From d13079a4a43fcfc6318fea206f4d29512d8debe5 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 5 Aug 2016 13:45:58 +0200 Subject: [PATCH] collectd-python(5): make example work out of the box --- src/collectd-python.pod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/collectd-python.pod b/src/collectd-python.pod index 77f3497b..0202b774 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' -- 2.30.2