irate(v range-vector)
calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points.
irate计算定义的时间区域内最后两个点的平均值,当最后两个点的时间间隔<=定义的时间区域时,返回的计算结果都一样,此时不管时间区域取多大,计算取的点都是相同的点。
如:监控某一进程的cpu
rate(v range-vector)
calculates the per-second average rate of increase of the time series in the range vector.
rate计算指定时间范围内最后一个点和第一个点之间的平均值

取值计算方式:
(138-(100的前一个点的值))/60,以此类推