Skip to content

Instantly share code, notes, and snippets.

@halcyonardency
Last active December 22, 2015 18:59
Show Gist options
  • Save halcyonardency/6516312 to your computer and use it in GitHub Desktop.
Save halcyonardency/6516312 to your computer and use it in GitHub Desktop.
Sep 10 14:55:35 SOMEHOST collectd[20478]: -1 Type `three/gauge' isn't defined.
<Plugin exec>
Exec "_graphiteuser" "/opt/g/testexec.py"
</Plugin>
#!/bin/python
import time, sys
value = str(int(time.time()))
print( "PUTVAL \"one/two/three/gauge-foobar\" interval=10 N:" + value)
sys.stdout.flush()
#!/bin/python
import time, sys
value = str(int(time.time()))
print( "PUTVAL \"one/two/gauge-foobar\" interval=10 N:" + value)
sys.stdout.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment