2022-07-05 23:04:03

prometheus函数

具体函数

  • abs(v instant-vector)
  • absent(v instant-vector)
  • absent_over_time(v range-vector)
  • ceil(v instant-vector)
  • changes(v range-vector)
  • clamp(v instant-vector, min scalar, max scalar)
  • clamp_max(v instant-vector, max scalar)
  • clamp_min(v instant-vector, min scalar)
  • day_of_month(v=vector(time()) instant-vector)
  • day_of_week(v=vector(time()) instant-vector)
  • days_in_month(v=vector(time()) instant-vector)
  • delta(v range-vector)
  • deriv(v range-vector)
  • exp(v instant-vector)
  • floor(v instant-vector)
  • histogram_quantile(φ scalar, b instant-vector) [常用]
  • holt_winters(v range-vector, sf scalar, tf scalar)
  • hour(v=vector(time()) instant-vector)
  • idelta(v range-vector)
  • increase(v range-vector) [常用]
  • irate(v range-vector) [常用]
  • label_join(v instant-vector, dst_label string, separator string, src_label_1 string, src_label_2 string, …)
  • label_replace(v instant-vector, dst_label string, replacement string, src_label string, regex string) [常用]
  • ln(v instant-vector)
  • log2(v instant-vector)
  • log10(v instant-vector)
  • minute(v=vector(time()) instant-vector)
  • month(v=vector(time()) instant-vector)
  • predict_linear(v range-vector, t scalar) [常用]
  • rate(v range-vector) [常用]
  • resets(v range-vector)
  • round(v instant-vector, to_nearest=1 scalar)
  • scalar(v instant-vector)
  • sgn(v instant-vector)
  • sort(v instant-vector)
  • sort_desc(v instant-vector)
  • sqrt(v instant-vector)
  • time() [常用]
  • timestamp(v instant-vector)
  • vector(s scalar) [常用]
  • year(v=vector(time()) instant-vector)
  • <aggregation>_over_time()
    • avg_over_time(range-vector)
    • min_over_time(range-vector)
    • max_over_time(range-vector) [常用]
    • sum_over_time(range-vector)
    • count_over_time(range-vector) [常用]
    • quantile_over_time(scalar, range-vector)
    • stddev_over_time(range-vector)
    • stdvar_over_time(range-vector)
    • last_over_time(range-vector)
    • present_over_time(range-vector)
  • trigonometric functions
    • acos(v instant-vector)
    • acosh(v instant-vector)
    • asin(v instant-vector)
    • asinh(v instant-vector)
    • atan(v instant-vector)
    • atanh(v instant-vector)
    • cos(v instant-vector)
    • cosh(v instant-vector)
    • sin(v instant-vector)
    • sinh(v instant-vector)
    • tan(v instant-vector)
    • tanh(v instant-vector)
  • deg(v instant-vector)
  • pi()
  • rad(v instant-vector)

本文链接:https://troy.wang/post/prometheus-funcs.html

-- EOF --