Management endpoints

Spring Cloud Netflix Zuul exposes two additional management endpoints for monitoring: 

  • Routes: Prints a list of defined routes
  • Filters: Prints a list of implemented filters (available from version 1.4.0.RELEASE of Spring Cloud Netflix)

To enable the managements endpoints feature, we have to include (as always) spring-boot-starter-actuator in the project dependencies. It's a good idea to disable endpoint security for test purposes by setting the management.security.enabled property to false. Now, you may just call the GET /routes method and it would print the following JSON response for our example system:

{  "/api/account/**": "account-service",  "/api/customer/**": "customer-service", "/api/order/**": "order-service", ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.