Closed hryamzik closed 8 years ago
In fact this could be hot fixed by modifying the function as follows:
def get_series_list(self, path_expr):
series_list = []
for path in self.get_paths(path_expr):
try:
for data in self.data.get(path):
start, end, step = data['time_info']
series = TimeSeries(path, start, end, step, data['values'])
series.pathExpression = path_expr
series_list.append(series)
except Exception as e:
import traceback
logger.error(traceback.format_exc())
return series_list
But looks like the propper way is to return an empty array from cyanite code.
@hryamzik do you use graphite-api 1.1 installed with pip? There have been two commits since the release related to an issue that looks similar. Could you try with the latest master version?
@brutasse tried to reinstall with pip install --upgrade git+https://github.com/brutasse/graphite-cyanite.git#egg=cyanite
– still the same error.
@hryamzik can you try the same with graphite-api?
@brutasse it works, thanks! I'll replace pip installs with github ones...
Great! I'll make a proper release soon :)
So I'm closing this. @brutasse could I possibly ask you to look at #16 as well?
If there's no data for some metric grafana shows the following error:
I've debugged this a bit and here's the request that returns "None':
self.get_paths(path_expr):
What's the propper return value in this case?