[英]how to perform a proper query with PromQL to get an increasing rate in prometheus
[英]Get average rate for the last one hour in Prometheus PromQL
我正在嘗試獲取過去一小時的平均請求率。
我正在使用以下查詢來獲取費率
sum(rate(query_executes{ namespace ='oracle'}[1m]) by (database)
但是,如果我要獲得過去一小時上述費率的平均值,我該怎么做呢?
費率基本上是平均值,如果您想計算“平均值(速率(some_metric [1m])[1h])”,只需執行“速率(some_metric [1h])”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.