Skip to content

Commit

Permalink
fix: traefik related request count per target query
Browse files Browse the repository at this point in the history
  • Loading branch information
applike-ss committed Sep 13, 2023
1 parent a3e5232 commit 0320f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/panel_traefik.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func NewPanelTraefikRequestCountPerTarget(settings PanelSettings) Panel {
Targets: []interface{}{
PanelTargetPrometheus{
Exemplar: true,
Expression: fmt.Sprintf(`sum(irate(traefik_service_requests_total{%s}[1m])) * 60 by ()/count(kube_pod_status_ready{condition="true",%s})`, labelFilterTraefik, labelFilterPod),
Expression: fmt.Sprintf(`sum(irate(traefik_service_requests_total{%s}[1m])) by () * 60/count(kube_pod_status_ready{condition="true",%s})`, labelFilterTraefik, labelFilterPod),
LegendFormat: "Requests",
RefId: "A",
},
Expand Down

0 comments on commit 0320f04

Please sign in to comment.