Skip to content

THREESCALE-10571 fix(proxy*): set upstream metrics when sending request via proxy - #1598

Open
tkan145 wants to merge 1 commit into
3scale:masterfrom
tkan145:THREESCALE-10151
Open

THREESCALE-10571 fix(proxy*): set upstream metrics when sending request via proxy#1598
tkan145 wants to merge 1 commit into
3scale:masterfrom
tkan145:THREESCALE-10151

Conversation

@tkan145

@tkan145 tkan145 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

What

Fix THREESCALE-10571

Verification steps

  • Checkout this branch
  • Build new runtime-image
make runtime-image IMAGE_NAME=apicast-test
  • Get into dev-environment
cd dev-environments/https-proxy-upstream-tlsv1.3
  • Generate certs
make certs
  • Modify the docker-compose file as followed
diff --git a/dev-environments/https-proxy-upstream-tlsv1.3/docker-compose.yml b/dev-environments/https-proxy-upstream-tlsv1.3/docker-compose.yml
index 25a49c52..f3ac3341 100644                                                                                                                 
--- a/dev-environments/https-proxy-upstream-tlsv1.3/docker-compose.yml                                                                          
+++ b/dev-environments/https-proxy-upstream-tlsv1.3/docker-compose.yml                                                                          
@@ -19,17 +19,19 @@ services:                                                                                                                   
     expose:                                                                                                                                    
       - "8080"
       - "8090"
+      - "9421"
     ports:                                                                                                                                     
       - "8080:8080"
       - "8090:8090"            
+      - "9421:9421" 
     volumes:                                                                                                                                   
       - ./apicast-config.json:/tmp/config.json                                                                                                 
   proxy:                                                                                                                                       
     build:                                                                                                                                     
       dockerfile: ./tinyproxy.Dockerfile                                                                                                       
     expose:                                                                                                                                    
-      - "3128:3128"
-      - "443:443"
+      - "3128"
+      - "443"  
     volumes:                                                                                                                                   
       - ./tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf                                                                                         
   example.com: 
  • Start the gateway
make gateway IMAGE_NAME=apicast-test
  • Check metrics
curl --resolve get.example.com:9421:127.0.0.1 -v "http://get.example.com:9421/metrics" 
  • Send a request
curl --resolve get.example.com:8080:127.0.0.1 -v "http://get.example.com:8080/?user_key=123"
  • Check the metrics again, you should see
# TYPE upstream_status counter                                       
upstream_status{status="200",service_id="",service_system_name=""} 1

# HELP upstream_response_time_seconds Response times from upstream servers              
# TYPE upstream_response_time_seconds histogram                                         
upstream_response_time_seconds_bucket{service_id="",service_system_name="",le="0.05"} 1 
....

@tkan145
tkan145 requested a review from a team as a code owner August 17, 2026 02:49
@tkan145
tkan145 force-pushed the THREESCALE-10151 branch 2 times, most recently from f5ea5d8 to 317ccdd Compare August 26, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant