A Quick Tour to OpenResty’s Web Console
This video provides a detailed demonstration of using the OpenResty XRay Web Console for real-time monitoring and management. With an intuitive UI, you can easily view performance metrics and trend analysis of various applications, quickly pinpoint online issues, and identify root causes through reports. This significantly enhances your operational efficiency, allowing you to better control and optimize application performance.
Introduction to Insight Page
This is the Insights page of the OpenResty XRay’s Web Console. You can see analysis reports of the system generated for all your apps across all of the servers.
You can find the reports for daily and weekly periods. By default, it displays today’s daily report. It can also show weekly reports.
Click to fold the details of these applications.
As shown, OpenResty XRay can analyze a wide variety of applications.
Unfold the “OpenResty” application.
Tap on category titles to unfold the list of issues.
Issues were categorized by type, making it easy to find the ones you’re interested in. The number following represents the number of issues found of that type.
Let’s check out the CPU issues in this Openresty application. It lists 12 issues below, all related to “CPU”.
Comprehensive Report Details
To view detailed information for a specific issue in the issue list,
just click on “More”.
Current issue is automatically inferred from this C-land Flame graph.
Enlarge it.
The flame graph can help you locate the root cause of the issue.
Below are more detailed explanations and suggestions about the issue.
Click this button to view more analysis results.
Here is the complete information of the report, such as which analyzer was used and application information.
You’ll also find the flame graph and other charts here.
And the complete terminal output.
OpenResty XRay can help you quickly discover and solve problems of your applications.
Dashboard Overview
Visit the “Dashboard” page for more detailed monitoring data.
Here are system metrics that display your system’s performance data.
You can easily switch in the upper corner to view other types of metrics.
Here are different kinds of charts related to CPU usage in real time.
Click to view this chart on the full screen.
Now, it shows data from the past 1 hour.
These are detailed metrics for system CPU utilization.
Below is basic information sorted by application type. This one is about the Go application.
There are other analytic diagrams and charts for various kinds of applications on the Dashboard page.
Go to the memory metrics page.
These system metrics are all about memory usage.
Use Guided Analysis Feature to Analyze Online
With the “Guided Analysis” feature, users can easily analyze performance problems online. Click on the “Guided Analysis” page.
Here, you can see different types of problems that you can diagnose.
Let’s select “High CPU Usage”.
Click on “Next”.
Select the OpenResty application.
Select the worker
process.
Make sure that the application type is right. Usually, the default should be correct.
OpenResty XRay can analyze multiple language levels at the same time. We’ll keep both Lua and C/C++ selected.
We can also set the maximum analyzing time. We’ll leave it as 300 seconds, which is the default value.
Start analyzing.
The system will keep performing different rounds of analysis. Now, it’s executing the first round.
The first round is done, and it’s already on the second one. That’s enough for this case.
Let’s stop analyzing.
It automatically generated an analysis report.
Click here to enter the historical report list page.
Here are the historical guided analysis reports.
This is the report we just generated.
Click to enter the report details page.
Setting and Configuration
Go back to the console page. Click here to enter the “Settings” page.
Select the settings feature.
Here, you can see the information on the selected agent and make some configurations for it.
What is OpenResty XRay
OpenResty XRay is a dynamic-tracing product that automatically analyzes your running applications to troubleshoot performance problems, behavioral issues, and security vulnerabilities with actionable suggestions. Under the hood, OpenResty XRay is powered by our Y language targeting various runtimes like Stap+, eBPF+, GDB, and ODB, depending on the contexts.
If you like this tutorial, please subscribe to this blog site and/or our YouTube channel. Thank you!
About The Author
Yichun Zhang (Github handle: agentzh), is the original creator of the OpenResty® open-source project and the CEO of OpenResty Inc..
Yichun is one of the earliest advocates and leaders of “open-source technology”. He worked at many internationally renowned tech companies, such as Cloudflare, Yahoo!. He is a pioneer of “edge computing”, “dynamic tracing” and “machine coding”, with over 22 years of programming and 16 years of open source experience. Yichun is well-known in the open-source space as the project leader of OpenResty®, adopted by more than 40 million global website domains.
OpenResty Inc., the enterprise software start-up founded by Yichun in 2017, has customers from some of the biggest companies in the world. Its flagship product, OpenResty XRay, is a non-invasive profiling and troubleshooting tool that significantly enhances and utilizes dynamic tracing technology. And its OpenResty Edge product is a powerful distributed traffic management and private CDN software product.
As an avid open-source contributor, Yichun has contributed more than a million lines of code to numerous open-source projects, including Linux kernel, Nginx, LuaJIT, GDB, SystemTap, LLVM, Perl, etc. He has also authored more than 60 open-source software libraries.