New question #141393 on Graphite:
https://answers.launchpad.net/graphite/+question/141393

Hi!  I have been attempting to import collectd RRDs (as well as RRDs from other 
tools) into Graphite via both copying and symlinking.  

The UI notices that the files are in place, but renders an empty folder for 
their icon.  With a little investigation, I noticed that the HTTP calls for 
those icons were returning 500's like so:
**************************************************
KeyError at /metrics/find/
'ds'
Request Method: GET
Request URL:    
http://50.16.135.124/metrics/find/?_dc=1294974077957&query=cpu-nice.*&format=treejson&contexts=1&path=cpu-nice&node=cpu-nice
Exception Type: KeyError
Exception Value:        
'ds'
Exception Location:     /opt/graphite/webapp/graphite/storage.py in 
getDataSources, line 265
Python Executable:      /usr/bin/python
Python Version: 2.6.5
Python Path:    ['/opt/graphite/webapp/', '/opt/graphite/webapp', 
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', 
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', 
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', 
'/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', 
'/usr/local/lib/python2.6/dist-packages']
Server time:    Thu, 13 Jan 2011 21:01:33 +0000
**************************************************

The relevant line of code is line #265 in storage.py:


**************************************************
/opt/graphite/webapp/graphite/storage.py in getDataSources
    fh.close()
class RRDFile(Branch):
  def getDataSources(self):
    try:
      info = rrdtool.info(self.fs_path)
      return [RRDDataSource(self, source) for source in info['ds']] ...
    except:
      raise
      return []
class RRDDataSource(Leaf):
**************************************************

I did a little research on the web, and this looks quite similar to this 
discussion about changes to the python rrd bindings back in 2009:

http://www.mail-archive.com/[email protected]/msg03368.html

Do you all have any insight into this issue?


-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to