nPercentile 在 Graphite 中做了什么,它与 percentileOfSeries 有何不同?

What does nPercentile do in Graphite and how it differs from percentileOfSeries?

我读了 docs 一百万遍,但我不明白它的作用。 nPercentile 在 Graphite 中有什么作用,它与 percentileOfSeries 有何不同?

nPercentile: "Returns n-percent of each series in the seriesList."

这会将您给它的每个系列转换为单个值*,即该系列的第 n 个百分位数(但它会输出与作为输入给定的系列一样多的系列)。

*请注意,与 Graphite 中的所有内容一样,此单个值将作为一个系列返回,包含多次(根据填充请求的时间范围所需的次数)相同的单个值。

percentileOfSeries: "percentileOfSeries returns a single series which is composed of the n-percentile values taken across a wildcard series at each point."

这是一个 returns 单个系列,对于每个时间点,它包含不同输入系列的第 n 个百分位数。