perSecond function returns an exception

Asked by Maziyar Mirabedini on 2013-04-25

Trying out perSecond(metricName) returns the following exception:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/core/handlers/", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/", line 104, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "/opt/graphite/webapp/graphite/render/", line 10, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/", line 27, in evaluateTokens
    func = SeriesFunctions[]
KeyError: u'perSecond'

I tried this with wildcard on multiple server and single metric and returns same result.

We're using Graphite 0.9.10.

any help would be much appreciated!

Question information

English Edit question
Graphite Edit question
No assignee Edit question
Last query:
Last reply:

I just installed Graphite 0.9.9 on another machine and tried out perSecond function and got the same result.

Here's the function:

It seems like other people are using the function.. am I missing something?

Here's example of how I'm using it:


Okay. My bad... I checked the 0.9.9 documentation and perSecond function doesn't even exist there.

Its interesting that we get the exact same exception in both I'm guessing that perSecond was missed from the stable release of 0.9.10???

So I downloaded the latest code from github, installed ceres and byparsing and installed it. well.. perSecond works perfectly there..

I'm not marking this problem as resolved because I think the documentation should be updated to say that the function is not available in 0.9.10...

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.