Skip to content

Commit 426bc9a

Browse files
Merge pull request #218375 from ninpan-ms/ninpan/scg-apm
[Draft] Add gateway APM document
2 parents 63faf56 + db1ceda commit 426bc9a

File tree

2 files changed

+43
-4
lines changed

2 files changed

+43
-4
lines changed

articles/spring-apps/how-to-configure-enterprise-spring-cloud-gateway.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,43 @@ The following table describes the default resource usage:
152152
| VMware Spring Cloud Gateway | 2 | 1 core | 2Gi |
153153
| VMware Spring Cloud Gateway operator | 2 | 1 core | 2Gi |
154154

155+
## Configure application performance monitoring
156+
157+
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+
155192
## Next steps
156193

157194
- [How to Use Spring Cloud Gateway](how-to-use-enterprise-spring-cloud-gateway.md)

articles/spring-apps/toc.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,12 @@ items:
128128
href: how-to-enterprise-service-registry.md
129129
- name: Use API portal
130130
href: how-to-use-enterprise-api-portal.md
131-
- name: Use Spring Cloud Gateway
132-
href: how-to-use-enterprise-spring-cloud-gateway.md
133-
- name: Configure Spring Cloud Gateway
134-
href: how-to-configure-enterprise-spring-cloud-gateway.md
131+
- name: Spring Cloud Gateway
132+
items:
133+
- name: Manage Spring Cloud Gateway
134+
href: how-to-configure-enterprise-spring-cloud-gateway.md
135+
- name: Configure routes
136+
href: how-to-use-enterprise-spring-cloud-gateway.md
135137
- name: Use VMware Tanzu Application Accelerator
136138
href: how-to-use-accelerator.md
137139
- name: Configure Tanzu Dev Tools

0 commit comments

Comments
 (0)