Grafana - 获取指标的中位数
Grafana - get Median of metrics
我是 Grafana 的新手,我正在尝试获取一些指标的中位数。
这些是我的团队正在使用的查询类型,我正在尝试为其获取中位数:
avg(backend_service_manager_className_methodName_request_time{quantile="0.75",})*1000
根据 the docs:
quantile(0.5, backend_service_manager_className_methodName_request_time)
计算中位数
相关文档:
https://prometheus.io/docs/prometheus/latest/querying/operators/#aggregation-operators
avg(quantile(0.75, backend_service_manager_className_methodName_request_time))
如果需要为您的 BL 添加 avg,显示的值应该是预先配置的,您不应该乘以 1000。
我是 Grafana 的新手,我正在尝试获取一些指标的中位数。
这些是我的团队正在使用的查询类型,我正在尝试为其获取中位数:
avg(backend_service_manager_className_methodName_request_time{quantile="0.75",})*1000
根据 the docs:
quantile(0.5, backend_service_manager_className_methodName_request_time)
计算中位数
相关文档:
https://prometheus.io/docs/prometheus/latest/querying/operators/#aggregation-operators
avg(quantile(0.75, backend_service_manager_className_methodName_request_time))
如果需要为您的 BL 添加 avg,显示的值应该是预先配置的,您不应该乘以 1000。