← 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

Zee posted a new comment:
I'm trying to test grapgitesend with this example https://github.com/daniellawrence/graphitesend/blob/master/examples/proc_loadavg.py 
so copied the code into a python file and trying to execute it 


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'
root@d19052-v19052:/# graphitesend name.of.the.metric 666
Traceback (most recent call last):
  File "/usr/local/bin/graphitesend", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python2.7/dist-packages/graphitesend/graphitesend.py", line 616, in cli
    graphitesend_instance = init()
  File "/usr/local/lib/python2.7/dist-packages/graphitesend/graphitesend.py", line 543, in init
    _module_instance = GraphiteClient(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/graphitesend/graphitesend.py", line 112, in __init__
    self.connect()
  File "/usr/local/lib/python2.7/dist-packages/graphitesend/graphitesend.py", line 162, in connect
    "No address associated with hostname %s:%s" % self.addr)
graphitesend.graphitesend.GraphiteSendException: No address associated with hostname graphite:2003
root@d19052-v19052:/# No address associated with hostname graphite:2003^C


Any idea what I'm missing. the only non-default thing I did while installing graphite was used Postgres database for Django instead of the default SQLite3

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