graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #03763
Re: [Question #219798]: Calculate CPU percentage usage
Question #219798 on Graphite changed:
https://answers.launchpad.net/graphite/+question/219798
Status: Open => Answered
Ben Whaley proposed the following answer:
/proc/stat is aggregate numbers (in jiffies) since system boot, so this
calculation is the % CPU spent in user since boot. What you probably
want is change over time, or
scale(divideSeries(nonNegativeDerivative(stats.app01.cpu.total.user),sumSeries(nonNegativeDerivative(stats.app01.cpu.total.*))),100)
Does this help?
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.