【发布时间】:2020-09-03 07:11:45
【问题描述】:
我正在使用 Prometheus 在 Graphana 中构建仪表板。 我有 2 个指标(对服务的总调用次数和总超时错误)
1 是对服务的总调用次数 PromQL-(增加(Fetching_RESPONSE_TIME_seconds_count{instance="${server}:8080"}[1h])
other 是总超时 PromQl-(增加(dp_errors_total{code=~"12345",instance="${server}:8080"}[1h]))
我想在我的仪表板中再增加一列,显示超时百分比,这将是(总超时*100/服务调用总数)。
当我这样做 PromQL- (increase(dp_errors_total{code=~"12345",instance="${server}:8080"}[1h])*100/(increase(Fetching_RESPONSE_TIME_seconds_count{instance="${server }:8080"}[1h])
它没有在我的仪表板上显示任何内容。
如何在我的仪表板中再添加一列来显示超时百分比?
【问题讨论】:
标签: prometheus grafana prometheus-alertmanager promql prometheus-operator