← Back to team overview

graphite-dev team mailing list archive

Re: [Question #653729]: Load MySQL data into graphite

 

Question #653729 on Graphite changed:
https://answers.launchpad.net/graphite/+question/653729

    Status: Answered => Open

Zee is still having a problem:
I changed it, my new code looks like this

#!/usr/bin/env python
import time
import graphitesend
# comments
g = graphitesend.init(group='loadavg_', suffix='min',graphite_server='10.3.11.90',graphite_port='2003')

while True:
    (la1, la5, la15) = open('/proc/loadavg').read().strip().split()[:3]
    print(g.send_dict({'1': la1, '5': la5, '15': la15}))
    time.sleep(1)

It still errors out ..


root@d19052-v19052:/# python3 proc_loadavg.py
Traceback (most recent call last):
  File "proc_loadavg.py", line 3, in <module>
    import graphitesend
ImportError: No module named 'graphitesend'

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.