The Spring Cloud Gateway tile includes settings for the options you can change. You can configure these by visiting the Ops Manager installation dashboard, clicking the Spring Cloud Gateway tile, and then going to the Service Broker pane.
By default, the Spring Cloud Gateway service is made available globally (that is, to all orgs). You can configure the service availability in the Spring Cloud Gateway tile settings, under Gateway Service access.
Select Global to make the Spring Cloud Gateway service available to all orgs, or select None to make the Spring Cloud Gateway service unavailable to all orgs.
By default, the Spring Cloud Gateway service broker stages service instance backing apps using the buildpack chosen by the platform's buildpack detection; normally, this will be the highest-priority Java buildpack. To cause the broker to use a particular Java buildpack regardless of priority, you can change the name of the buildpack to use in the Spring Cloud Gateway tile settings, under Java Buildpack.
Enter the name of the desired Java buildpack. The broker will use the selected buildpack to stage service instance backing apps.
By default, the Spring Cloud Gateway service broker will wait 30 minutes before considering a service instance operation to have failed. You can specify a different timeout interval in the Spring Cloud Gateway tile settings, under Status change timeout.
Enter the desired number of minutes. The broker will allow the specified number of minutes for service instance operations to complete.
By default, the Spring Cloud Gateway service broker assigns routes to service instances using the platform's application domain. You can specify a custom domain for service instance routes in the Spring Cloud Gateway tile settings, under Service instances domain.
Important Your custom domain must be available to the p-spring-cloud-gateway-service
org. If you are installing Spring Cloud Gateway, you must manually create this org before configuring the custom domain in the Spring Cloud Gateway tile settings.
Enter the desired domain. The broker will use this domain to create routes for service instances.
Spring Cloud Gateway can be configured to expose tracing and to generate a set of metrics and tracings based on different monitoring signals to help with understanding behavior in aggregate.
Note Metrics and Tracing are independent from each other.
To expose metrics to Wavefront we need to select the check box Enable Metrics with Wavefront, and provide a Wavefront API token and a URI endpoint. To expose metrics to Wavefront we need to select the check box Enable Metrics with Wavefront, and provide a Wavefront API token and a URI endpoint.
After applying the configuration, Wavefront will start receiving the metrics provided by default by Spring Cloud Gateway.
Spring Cloud Gateway has a pre-built dashboard you can use in Wavefront.
If you are using VMware Wavefront, then you can clone and customize the already created Spring Cloud Gateway Dashboard.
Alternatively, the Spring Cloud Gateway release artifacts contain a dashboard that can be found inside the dashboards release folder.
To import it, we need to create an API Token and execute the following command:
curl -XPOST 'https://vmware.wavefront.com/api/v2/dashboard' --header "Authorization: Bearer ${WAVEFRONT_API_TOKEN}" --header "Content-Type: application/json" -d "@wavefront-spring-cloud-gateway-for-tas.json"
To expose tracing to Wavefront we need to select the check box Enable Tracing with Wavefront, and provide a Wavefront API token and a URI endpoint.
After applying the configuration, Wavefront starts receiving the traces.
Redis can be made available as the implementation technology for session management and rate limiting. This requires the Redis tile to be installed. When a developer opts in to Redis while creating a gateway instance, the service broker will automatically create a Redis instance and bind it to the gateway.
To configure Redis, go to the Service Broker section, and under Make Redis available for gateways, select Yes. Then provide the Redis offering (for example, p-redis) and Redis plan (e.g. shared-vm).
Note Lua Scripting must be activated on the Redis tile configuration otherwise the Rate Limit feature will fail
To activate Lua Scripting on the Shared-VM Plan, go to the Shared-VM Plan section and select Lua Scripting.
To activate Lua Scripting on your on-demand plans, go the On-Demand Plans section, and for each added plan, select Lua Scripting.