In the Istio rule object collecting HTTP metrics, add a match: clause that limits the rule to (a) only HTTP or gRPC requests, (b) not kube-probe requests, and (c) not Prometheus requests.
Additional context
This matches a similar match expression in the standard Istio Prometheus
handler (see also istio/istio#12251). Without this, we see inbound request metrics from health checks, and outbound HTTP request metrics for background non-HTTP activity.
Description
In the Istio
rule
object collecting HTTP metrics, add amatch:
clause that limits the rule to (a) only HTTP or gRPC requests, (b) not kube-probe requests, and (c) not Prometheus requests.Additional context
This matches a similar match expression in the standard Istio Prometheus handler (see also istio/istio#12251). Without this, we see inbound request metrics from health checks, and outbound HTTP request metrics for background non-HTTP activity.