projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf8a30d
)
collectd-python(5): make example work out of the box
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 5 Aug 2016 11:45:58 +0000
(13:45 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 5 Aug 2016 11:45:58 +0000
(13:45 +0200)
src/collectd-python.pod
patch
|
blob
|
history
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'