spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.54k stars 3.33k forks source link

monitor every request in gateway mondule by actuator #3444

Open meng-chun520 opened 4 months ago

meng-chun520 commented 4 months ago

Recently,our team use springboot actuator to monitor every request count and time,and we implement this in the gateway mondule. However,we find that we can only monitor the uri information,and it fails to monitor the every specific request.Here is the example image image we want to monitor like /sdk/v1/test1,/sdk/v1/test2,but only uri lb:http://entity-auth showed. By the way, finally we implement this in the gateway mondule filter succefully by recording every request.If there any alternative method that we can choose to implement by gateway?

spencergibb commented 23 hours ago

A custom filter seems like the right way to go