projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
collectd-python(5): make example work out of the box
[collectd.git]
/
src
/
collectd-python.pod
diff --git
a/src/collectd-python.pod
b/src/collectd-python.pod
index
77f3497
..
0202b77
100644
(file)
--- 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'