gfazioli
9/17/2015 - 9:21 AM

Prometheus functions

Prometheus functions

<?php

  // todo I guess that we need to update that, it could be absolete

  // Prometheus functions
  const ABS                = "abs";
  const ABSENT             = "absent";
  const BOTTOMK            = "bottomk";
  const CEIL               = "ceil";
  const CHANGES            = "changes";
  const COUNT_SCALAR       = "count_scalar";
  const DELTA              = "delta";
  const DERIV              = "deriv";
  const DROP_COMMON_LABELS = "drop_common_labels";
  const EXP                = "exp";
  const FLOOR              = "floor";
  const HISTOGRAM_QUANTILE = "histogram_quantile";
  const INCREASE           = "increase";
  const LABEL_REPLACE      = "label_replace";
  const LN                 = "ln";
  const LOG2               = "log2";
  const LOG10              = "log10";
  const predict_linear     = "predict_linear";
  const RATE               = "rate";
  const RESETS             = "resets";
  const ROUND              = "round";
  const SCALAR             = "scalar";
  const SORT               = "sort";
  const SORT_DESC          = "sort_desc";
  const SQRT               = "sqrt";
  const TIME               = "time";
  const TOPK               = "topk";
  
  // The following functions allow aggregating each series of a given range vector over time and return an instant
  // vector with per-series aggregation results:
  const AVG_OVER_TIME   = "avg_over_time";
  const MIN_OVER_TIME   = "min_over_time";
  const MAX_OVER_TIME   = "max_over_time";
  const SUM_OVER_TIME   = "sum_over_time";
  const COUNT_OVER_TIME = "count_over_time";