← Back to team overview

graphite-dev team mailing list archive

Re: [Question #199322]: Y-axis values change depending on time span

 

Question #199322 on Graphite changed:
https://answers.launchpad.net/graphite/+question/199322

Michael Leinartas proposed the following answer:
During rendering, Graphite calculates the space between each point-draw
to properly line up the values to the graph width. Once the space
between the points gets below the line width (default 1.2 pixels) they
start to 'smoosh' together, so at this point Graphite reduces the number
of drawn points by consolidating them with an average() function. You
can change this to a sum() function instead by wrapping the series in
the cumulative() function
(http://readthedocs.org/docs/graphite/en/0.9.10/functions.html#graphite.render.functions.cumulative)
but note that it may not be what you expect as you'll be displaying the
sum of the points which went into that drawn point (which may not line
up with an actual value in the data).

If you're already using summarize, you can get the real values displayed
by summarizing to a longer interval (thus reducing the number of points
displayed). You can also fiddle with the threshold used before point
consolidation occurs, minXStep:
http://readthedocs.org/docs/graphite/en/0.9.10/render_api.html#minxstep
and tweak the line width if the lines get too messy
http://readthedocs.org/docs/graphite/en/0.9.10/render_api.html#linewidth

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.