The real-time diagnostics feature applies when you need to monitor application performance for a short period of time and identify the causes of issues. This topic describes how to use the real-time diagnostics feature.
Background information
If you need to monitor the performance of an application for a short period of time in specific scenarios, you can use the real-time diagnostics feature. For example, when you publish an application or perform stress testing on an application, you can use this feature. After the real-time diagnostics feature is enabled, the system monitors the application for 5 consecutive minutes and reports all the trace data in this period. Then, you can start from the trace that has performance issues, and use features such as the waterfall charts of method stacks and thread profiling to identify the causes of the issues.
Limits
Enterprise Distributed Application Service (EDAS) supports real-time diagnostics in Professional Edition and Platinum Edition, but not in Standard Edition.
Go to the feature page
-
Log on to the EDAS consoleEDAS console.
In the left-side navigation pane, choose Application Management > Applications. In the top navigation bar, select a region, select a microservices namespace from the Microservices Namespace drop-down list, select Kubernetes Cluster from the Cluster Type drop-down list, and then click the name of the desired application.
- In the left-side navigation pane of the application details page, choose .
Enable and disable real-time diagnostics
On the Real-time Diagnosis page, click Enable real-time diagnosis.
Real-time diagnostics is automatically disabled 5 minutes after it is enabled. To disable real-time diagnostics before it is automatically disabled, click Terminate Real-time Diagnosis in the upper-right corner.
View real-time monitoring data
In the Real-time Requests Distribution and Requests by Response Time sections, you can view the statistics of the last 1,000 requests captured as of the current point in time.
In the Real-time Requests Distribution section, select a time range to set data of this time range as visible. The chart shows data only within this time range. Click Reset in the upper-right corner of the chart and the default view can be restored.
Filter monitoring data
You can filter request monitoring data displayed on the page by operation name and IP address.
- Click the + icon at the top of the Real-time Requests Distribution section.
- Select an API operation or IP address from the drop-down list and click Search.
Only the request monitoring data of the selected operation is displayed on the page.
View information of traces
On the Traces and Interface Aggregated tabs, you can view information of all traces captured in the corresponding period. Click a TraceId to access the Link Invocation page. Use the local method stack waterfall chart and thread profiling to identify the causes of exceptions.