Prometheus 常用 PromQL 语句样例
) right_metric其他常用的比较运算符:==、!=、>、<、>=、≤。 直方图分位数过去5分钟内,每个标签维度请求延迟的90%分位数: histogram_quantile(0.9, rate(my_request_durations_seconds_bucket[5m]))只针对 method 和 path 维度的90%分位数: histogram_quantile( 0.9, sum by(le, path, method) ( rate(my_request_durations_seconds_bucket[5m]) ) ) Gauges 的变化过去一小时内的绝对值变化: delta(my_gauge[1h])基于过去4小时的数据来预测1小时后的数据: predict_linear(my_gauge...阅读全文