You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several types of Application Performance Monitoring (APM) Java agents provided by Spring Cloud Gateway to monitor gateway managed by Azure Spring Apps. Use the two configurations to setup APM for Spring Cloud Gateway.
158
+
159
+
#### [Portal](#tab/Azure-portal)
160
+
161
+
The following steps are to set up APM using the Azure portal.
162
+
163
+
1. Open the **Spring Cloud Gateway** page and select **Configuration** tabs.
164
+
165
+
1. Choose the APM type to monitor gateway in the dropdown list of **APM**.
166
+
167
+
1. Fill the key-value pairs environment variables of APM in the **Properties** or **Secrets**. You can put variables with sensitive information in **Secrets**.
168
+
169
+
1. When all configurations provided, select **Save** at the bottom to save your changes.
170
+
171
+
Updating the configuration can take a few minutes. You should get a notification when the configuration is complete.
172
+
173
+
#### [CLI](#tab/Azure-CLI)
174
+
175
+
The following steps use the Azure CLI to set up APM.
176
+
177
+
Run the following command
178
+
179
+
```azurecli
180
+
az spring gateway update --apm-types <APM_TYPE> --properties <key=value> --secrets <key=value>
181
+
```
182
+
183
+
The supported APM types are `ApplicationInsights`, `AppDynamics`, `Dynatrace`, `NewRelic` and `ElasticAPM`. You can refer to their public documents about APM Java agent to see full functions provided and which environment variables are exposed. Azure Spring Apps will upgrade APM agents version in the same cadence as those in Buildpacks to keep compatibility of agents between Spring Cloud Gateway and users' applications.
184
+
185
+
> [!NOTE]
186
+
> By default, Azure Spring Apps prints the logs of the APM Java agent to `STDOUT`, which are mixed with Spring Cloud Gateway logs. You can check the version of APM agent used in logs. These logs can be queried in Log Analystics for troubleshooting.
187
+
> Increase the cpu and memory of Spring Cloud Gateway to make APM agents work correctly.
188
+
155
189
## Next steps
156
190
157
191
-[How to Use Spring Cloud Gateway](how-to-use-enterprise-spring-cloud-gateway.md)
0 commit comments