Graphite Y-Axis scale off or stays the same

Asked by thomas chen

I recently set up a StatsD + Graphite box. The shape of the graphs look correct, but the y-axis scale and minor increments on it look incorrect. For any increment() calls I make, the graph that I see in Graphite has a maximum value for the y-axis that is always one. I took the same graph and changed the range from 5 days to 5 hours and the y-axis stayed the same despite the max data point in the 5 hour window being much smaller than the max data point in the 5 day range.

It seems like timing() calls work correctly and the y-axis is correct, but for my increment() calls the y-axis is off.

I am using the node-statsd JS client for statsd (https://github.com/sivy/node-statsd).

5day range: http://i46.tinypic.com/1428w2q.png
5hour range: http://i46.tinypic.com/70zuib.png
Notice: both scales are the same, but in the 5 day range you can clearly see the lines in the far right would not be 0.25 but something far less. When I go to the 5hour range the y-axis still says it's 0.25 in value.

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nicholas Leskiw (nleskiw) said :
#1

You have more datapoints than horizontal pixels, so graphite is averaging the y values. The master branch in github now has a function to grab max or min values instead of averaging them.

See https://bugs.launchpad.net/graphite/+bug/886411 and Michael's excellent explanation here: https://answers.launchpad.net/graphite/+question/199322

-Nick

thomas chen <email address hidden> wrote:

>Question #204079 on Graphite changed:
>https://answers.launchpad.net/graphite/+question/204079
>
>Description changed to:
>I recently set up a StatsD + Graphite box. The shape of the graphs look
>correct, but the y-axis scale and minor increments on it look incorrect.
>For any increment() calls I make, the graph that I see in Graphite has a
>maximum value for the y-axis that is always one. I took the same graph
>and changed the range from 5 days to 5 hours and the y-axis stayed the
>same despite the max data point in the 5 hour window being much smaller
>than the max data point in the 5 day range.
>
>It seems like timing() calls work correctly and the y-axis is correct,
>but for my increment() calls the y-axis is off.
>
>I am using the node-statsd JS client for statsd (https://github.com/sivy
>/node-statsd).
>
>5day range: http://i46.tinypic.com/1428w2q.png
>5hour range: http://i46.tinypic.com/70zuib.png
>Notice: both scales are the same, but in the 5 day range you can clearly see the lines in the far right would not be 0.25 but something far less. When I go to the 5hour range the y-axis still says it's 0.25 in value.
>
>--
>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 address hidden>
>Unsubscribe : https://launchpad.net/~graphite-dev
>More help : https://help.launchpad.net/ListHelp

Revision history for this message
Dieter P (dieter-plaetinck) said :
#2

Can you help with this problem?

Provide an answer of your own, or ask thomas chen for more information if necessary.

To post a message you must log in.