graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #00327
Re: [Question #104701]: Is it possible to display current numerical values in the graphs?
Question #104701 on Graphite changed:
https://answers.launchpad.net/graphite/+question/104701
Status: Open => Answered
chrismd proposed the following answer:
It's been a few years since I've used rrd so bear with me. Is it the
LAST consolidation function you are interested in or the value
formatting (the %5.2lf part)?
As far as LAST goes, no Graphite doesn't support that because Graphite
consolidate datapoints the same way rrd does. It would be very easy to
implement but I'm not sure it behave the same as you would expect (ie.
as it does with rrd).
If its formatting you're after then you may be in luck. There are two
approaches depending on what you're after. First is to simply use the
scale() function to basically multiply every value in your graph by some
constant such that the value appears in a desirable range with decimal
precision or whatever. Sometimes thats really useful, sometimes its
annoying depending on your use case.
Another approach is to use the new yUnitSystem feature that just got
committed to trunk a few weeks ago (it might be in the 0.9.6 release I
can't remember). Basically, yUnitSystem=si (the default) or
yUnitSystem=binary will append the appropriate K (kilo), M (mega), G
(giga), etc... suffix to your values to auto-scale them more
conveniently. Using yUnitSystem=none gives you the old (current?)
behavior of just drawing the raw values on the Y-axis labels.
Now that you mention it though I think this would be a good feature to
add, letting users explicitly specify a Y-axis label format string. I'll
make a bug and target it for the next release. This would be especially
useful in conjunction with yUnitSystem.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.