spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

Spring Cloud Gateway MVC does not populate http_client_requests_* metrics correctly

Open kelseyh opened this issue 3 months ago • 0 comments

Spring Cloud Gateway MVC (4.1.9) While the http_client_requests_* metrics are populated, the uri tag is always set to none e.g.

http_client_requests_active_seconds_count{app="api-gateway-svc",  application="api-gateway", 
backstage_io_kubernetes_id="api-gateway-svc",  client_name="address-svc.common", critical="true", 
environment="prd",  exception="none", instance="REDACTED", job="kubernetes-pods",  
kubernetes_namespace="common",  kubernetes_pod_name="api-gateway-svc-microservice-base-59c5c7dd6b-rnflv",  
method="GET", outcome="UNKNOWN", pod_template_hash="59c5c7dd6b",  release="api-gateway-svc", 
security_istio_io_tlsMode="istio",  
service_istio_io_canonical_name="api-gateway-svc",  service_istio_io_canonical_revision="378", 
status="CLIENT_ERROR",  team_name="dev-ex", uri="none", version="378"}

Addtionally, outcome is set to "UNKNOWN" when status is "CLIENT_ERROR"

kelseyh avatar Sep 11 '25 09:09 kelseyh