Skip to main content

Aggregation Operators

  • Aggregation Operators

  • avg_over_time(range-vector): the average value of all points in the specified interval.

  • min_over_time(range-vector): the minimum value of all points in the specified interval.

  • max_over_time(range-vector): the maximum value of all points in the specified interval.

  • sum_over_time(range-vector): the sum of all values in the specified interval.

  • count_over_time(range-vector): the count of all values in the specified interval.

  • quantile_over_time(scalar, range-vector): the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval.

  • stddev_over_time(range-vector): the population standard deviation of the values in the specified interval.

  • stdvar_over_time(range-vector): the population standard variance of the values in the specified interval.

  • last_over_time(range-vector): the most recent point value in the specified interval.

  • present_over_time(range-vector): the value 1 for any series in the specified interval.

  • topk - pega os 4 primeiros com maior valor

    topk(4, sum(node_cpu_seconds_total) by (mode))
  • bottomk - pega os 4 primeiros com menor valor

    bottomk(4, sum(node_cpu_seconds_total) by (mode))