Code

collectd-python(5): make example work out of the box
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 5 Aug 2016 11:45:58 +0000 (13:45 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 5 Aug 2016 11:45:58 +0000 (13:45 +0200)
src/collectd-python.pod

index 77f3497b6b924f2515f3896ff0584aec39b2806c..0202b774291f7e0c9f9278288b96b749d910b482 100644 (file)
@@ -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'