rrd2whisper traceback - KeyError: 'rra'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graphite |
Fix Released
|
Low
|
Unassigned |
Bug Description
$ rrd2whisper.py idisk_usedInode
Traceback (most recent call last):
File "./rrd2whisper.py", line 26, in <module>
for rra in rrd_info['rra']:
KeyError: 'rra'
Relevant info when applied to the attached rrd file:
>>> rrd_info = rrdtool.
>>> from pprint import pprint; pprint( rrd_info.keys() )
['rra[6].cur_row',
'rra[6]
'ds[ds0].index',
'rra[0]
'rra[5]
'rra[4]
'rra[1]
'ds[ds0].min',
'rra[1].xff',
'rra[3].cur_row',
'rra[3]
'rra[2].cf',
'rra[4].cur_row',
'rra[2]
'rra[0]
'rra[5]
'ds[ds0].value',
'ds[ds0]
'ds[ds0].max',
'rra[1].rows',
'rra[3].rows',
'rrd_version',
'rra[6].rows',
'filename',
'rra[1].cf',
'last_update',
'rra[5].rows',
'rra[4].xff',
'rra[0].cf',
'rra[4].cf',
'rra[3]
'rra[2].xff',
'rra[2].rows',
'rra[0]
'rra[0].cur_row',
'rra[6].xff',
'rra[3]
'rra[4]
'header_size',
'ds[ds0].last_ds',
'step',
'rra[6]
'rra[3].xff',
'ds[ds0].type',
'rra[6]
'rra[4]
'rra[5]
'rra[0].rows',
'rra[1]
'rra[1].cur_row',
'ds[ds0]
'rra[5].cur_row',
'rra[4].rows',
'rra[3].cf',
'rra[0].xff',
'rra[5].cf',
'rra[2]
'rra[5].xff',
'rra[2].cur_row',
'rra[6].cf',
'rra[1]
'rra[2]
There isn't a "rra" key, only rrd[$index]
Changed in graphite: | |
status: | Fix Committed → Fix Released |
Due to API change in python-rrdtool. Committed a fix to 0.9.x which will make it into 0.9.10