Could not compose the result of multiplySeries
I am trying to do sumSeries(
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/
seriesList = evaluateTarget(
File "/opt/graphite/
result = evaluateTokens(
File "/opt/graphite/
return evaluateTokens(
File "/opt/graphite/
args = [evaluateTokens
File "/opt/graphite/
return evaluateTokens(
File "/opt/graphite/
return func(requestCon
File "/opt/graphite/
name = "sumSeries(%s)" % ','.join(
AttributeError: 'TimeSeries' object has no attribute 'pathExpression'
Am I doing something wrong? Thanks for you help.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Michael Leinartas
- Solved:
- 2012-05-09
- Last query:
- 2012-05-09
- Last reply:
- 2012-05-08
|
#1 |
You did indeed uncover a bug, though I dont think this is what you want to do.
MultiplySeries accepts multiple series and returns a single series as product. sumSeries does the same. In this case, you're only feeding a single series to sumSeries so it's just going to return the same series back.
The bug here is that multiplySeries creates a new series without setting a pathExpression. I've gone through and ensured any functions which return a newly created series create this pathExpression so that they can be input into functions which require it such as sumSeries. This fix will make it into the 0.9.10 release
Thanks Michael for responding back so quick and fixing it in next release. I just want to show you a toy example to reproduce, in reality I will be summing the output of many multiplySeries.
When are you planning to release 0.9.10?
Thanks Michael Leinartas, that solved my question.
Michael Leinartas (mleinartas) said : | #4 |
I'm going to cut an 0.9.10-pre2 tonight with the fix I mentioned above and a couple other small fixes. The final release should come within a week or two - certainly by the end of the month.
Thanks Michael.