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 a gateway managed by Azure Spring Apps.
158
+
159
+
### [Azure portal](#tab/Azure-portal)
160
+
161
+
Use the following steps to set up APM using the Azure portal:
162
+
163
+
1. Open the **Spring Cloud Gateway** page and select the **Configuration** tab.
164
+
165
+
1. Choose the APM type in the **APM** list to monitor a gateway.
166
+
167
+
1. Fill in the key-value pairs for the APM environment variables in the **Properties** or **Secrets** sections. You can put variables with sensitive information in **Secrets**.
168
+
169
+
1. When you've provided all the configurations, select **Save** 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
+
### [Azure CLI](#tab/Azure-CLI)
174
+
175
+
Use the following command to set up APM using Azure CLI:
176
+
177
+
```azurecli
178
+
az spring gateway update \
179
+
--apm-types <APM-type> \
180
+
--properties <key=value> \
181
+
--secrets <key=value>
182
+
```
183
+
184
+
---
185
+
186
+
The supported APM types are `ApplicationInsights`, `AppDynamics`, `Dynatrace`, `NewRelic`, and `ElasticAPM`. For more information about the functions provided and which environment variables are exposed, see the public documentation for the APM Java agent you're using. Azure Spring Apps will upgrade the APM agent with the same cadence as deployed apps to keep compatibility of agents between Spring Cloud Gateway and apps.
187
+
188
+
> [!NOTE]
189
+
> By default, Azure Spring Apps prints the logs of the APM Java agent to `STDOUT`. These logs are mixed with the Spring Cloud Gateway logs. You can check the version of the APM agent used in the logs. You can query these logs in Log Analytics to troubleshoot.
190
+
> To make the APM agents work correctly, increase the CPU and memory of Spring Cloud Gateway.
191
+
155
192
## Next steps
156
193
157
194
-[How to Use Spring Cloud Gateway](how-to-use-enterprise-spring-cloud-gateway.md)
0 commit comments