Skip to content

Commit

Permalink
use filter on downstream_cx_active stats url
Browse files Browse the repository at this point in the history
Add a filter to prometheus stats url so that
only the desired stats are returned. This improves
the performance especially in clusters with high
number of routes

Signed-off-by: Ahmad Karimi <ak12hastam@gmail.com>
  • Loading branch information
therealak12 committed Jun 20, 2024
1 parent 9f25ff6 commit 0bcac42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/contour/shutdownmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
)

const (
prometheusURL = "http://unix/stats/prometheus"
prometheusURL = "http://unix/stats/prometheus?filter=http\\..*\\.downstream_cx_active"
healthcheckFailURL = "http://unix/healthcheck/fail"
prometheusStat = "envoy_http_downstream_cx_active"
)
Expand Down

0 comments on commit 0bcac42

Please sign in to comment.