summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf8a30d)
raw | patch | inline | side by side (parent: bf8a30d)
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 |
index 77f3497b6b924f2515f3896ff0584aec39b2806c..0202b774291f7e0c9f9278288b96b749d910b482 100644 (file)
--- a/src/collectd-python.pod
+++ b/src/collectd-python.pod
A very simple read function might look like:
+ import random
+
def read(data=None):
vl = collectd.Values(type='gauge')
vl.plugin='python.spam'