After you create an engine for Microservices Engine (MSE), you can monitor the engine. This topic describes how to view metric data in the Nacos monitoring center of the MSE console.
Prerequisites
MSE is activated. For more information, see Activate MSE.
A Nacos engine is created. For more information, see Create a Nacos engine.
Enable the Grafana dashboard
Basic Edition
If the edition of your engine is Basic Edition, the Grafana dashboard is automatically enabled after you upgrade the engine edition from the Basic Edition to the Professional Edition. For more information about how to upgrade the engine edition, see Upgrade the engine edition.
Professional Edition
If the version of your engine is Professional Edition 2.0.3 or earlier, you must go to the Observability Analysis page of the MSE console and click Upgrade Monitoring Dashboard. Then, follow the steps displayed in the Upgrade Monitoring Dashboard dialog box to enable the Grafana dashboard.
Use the Grafana dashboard
If you enable the Grafana dashboard, you can view data of a variety of metrics.
- Log on to the MSE console and select a region in the top navigation bar.
- In the left-side navigation pane, choose .
- On the Instances page, click the name of the instance.
In the left-side navigation pane, choose . Then, perform the following operations based on your business requirements:
On the Overview tab, view the following information:
In the Overview section, view metrics such as the number of engine nodes, number of configurations, number of service providers, queries per second (QPS), transactions per second (TPS), and number of connections.
In the Usage level section, view the number of used configurations, number of used service providers, and number of used connections.
Click the Registry Monitoring tab to view metrics such as the number of services, number of service providers, number of service consumers, and TPS, QPS, and response time (RT) of write and read operations in a registry.
Click the Configuration Center Monitoring tab to view metrics such as the number of configurations, number of configuration listeners, number of service consumers, and TPS, QPS, and RT of write and read operations in a configuration center.
Click the Push Monitoring tab to view metrics such as the success rate of service pushes, service push duration, service push TPS, and proportion of empty lists pushed by services.
Click the Connection Quantity Monitoring tab to view metrics such as the number of connected clients of a specific version and number of persistent connections.
Click the JVM Monitoring tab to view metrics such as the young garbage collection (GC) time, number of young GCs, full GC time, number of full GCs, and heap memory usage.
Click the Resource Monitoring tab to view resource metrics such as the inbound traffic, outbound traffic, memory usage, CPU utilization, percentage of the used disk space, disk read and write throughput, number of nodes, and load.
Take note of the following points when you view metrics on the Monitoring Center page:
By default, the time range is set to Last 15 minutes, which indicates 15 minutes before the current time. You can also click the Time Range drop-down list in the upper-right corner to select another time range or configure a custom time range as the monitoring cycle.
When you move the pointer over a specific position in a data chart, the metric data of nodes at the specified point in time is displayed. The time is precise to the minute.
Click
in the upper-right corner to refresh metric data.
If you require more observability capabilities, click Using Grafana Professional Edition in the upper-right corner to go to the Grafana console.
If you want to view metric data of Nacos instances in a new window, click Open in New Window XX Monitoring in the upper-right corner to obtain the URL of the new window. XX indicates a metric type.
For example, you can click the Registry Monitoring tab. In the upper-right corner of the tab, click Open in New Window Registry Monitoring to view metric data of a registry in a new window.
Use the old dashboard
If you do not enable the Grafana dashboard, you can still use the old dashboard provided by MSE. To view data of more metrics, we recommend that you upgrade the monitoring dashboard to the Grafana dashboard. For more information, see Enable the Grafana dashboard.
- Log on to the MSE console and select a region in the top navigation bar.
- In the left-side navigation pane, choose .
- On the Instances page, click the name of the instance.
In the left-side navigation pane, click Observation Analysis.
On the Monitor page, view metrics such as the number of client connections, TPS, and QPS.
Take note of the following points when you view metrics on the Monitor page:
By default, the time range is set to 30 minutes before the current time. You can select another time range, such as 30 minutes, 1 hour, 6 hours, or 1 day. You can also configure a custom time range.
The metric data of three nodes in an engine is displayed in different colors on the page. You can click the name of a node in the lower part of a chart to display or hide the metric data of the node. You must ensure that metric data of at least one node is displayed.
When you move the pointer over a specific position in a chart, metric data of three nodes at the specified point in time is displayed. The time is precise to the minute.
You can click
in the upper-right corner to refresh metric data.