← Back to team overview

graphite-dev team mailing list archive

Re: [Question #175593]: How to express a "show top N values" as a percentage

 

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

    Status: Open => Answered

chrismd proposed the following answer:
Yea you should be able to achieve that by using areaMode=stacked and
wrapping each metric in an asPercent(my.metrics.*, total_max_value)
where total_max_value is the sum all of the metrics should add up to.
asPercent yields values from 0-100 so if you want it on a different
scale then wrap it in a scale() call as well.

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