Viewing Metrics
The Metrics page allows you to monitor GaussDB(for MySQL) instances.
- You can view the real-time performance metrics and trends of all instances in your account. This allows you to quickly identify and address any abnormal instances.
- You can also view the historical performance metrics.
Viewing Real-Time Metrics
- Log in to the management console.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner of the page and choose Databases > GaussDB(for MySQL).
- In the navigation pane, choose Metrics.
- View the real-time performance metrics of a created GaussDB(for MySQL) instance under the current account.
Figure 1 Viewing real-time metrics
Table 1 Parameter description Parameter
Description
Node Name/ID
Only monitoring data for the nodes of a created GaussDB(for MySQL) instance is displayed.
Status
The value can be:
- Normal: Real-time monitoring data is displayed.
NOTE:
The monitoring data and charts are available for a new instance after the instance runs for about 10 minutes.
- Abnormal: There is no monitoring data. The default values for all metrics are 0. The monitoring data is available only after the instance becomes normal.
- Stopped: There is no monitoring data. The default values for all metrics are 0. The monitoring data is available only after the instance is started.
Node Type
The value can be:
- Primary
- Replica
Availability Zone
AZ where a node is located
Private IP Address
Private IP address of a node
Failover Priority
Failover priority of a node
Metrics
For details about metric description and handling suggestions for abnormal metrics, see Table 2. The following metrics are available:
- CPU Usage
- Memory Usage
- TPS
- QPS
Table 2 Monitoring items Item
Description
Handling Suggestion
Reference
CPU Usage
CPU usage of the monitored object
- Evaluate the SQL execution plan and add indexes to avoid full table scanning.
- Upgrade vCPUs for compute-intensive workloads.
What Should I Do If the CPU Usage of My GaussDB(for MySQL) Instance Is High?
Memory Usage
Memory usage of the monitored object
- Upgrade instance specifications.
- Optimize SQL statements to reduce the use of temporary tables.
- Reconnect sessions at a specific interval to release memory of the sessions.
TPS
Execution times of submitted and rollback transactions per second
- Evaluate the SQL execution plan and add indexes to avoid full table scanning.
- Upgrade vCPUs for compute-intensive workloads.
What Should I Do If the CPU Usage of My GaussDB(for MySQL) Instance Is High?
QPS
Query times of SQL statements (including stored procedures) per second
- Normal: Real-time monitoring data is displayed.
Viewing Historical Metrics
- You can view the metrics of up to six nodes at a time.
- You can view the performance metrics in the last 1 hour, last 3 hours, last 12 hours, last 24 hours, or last 7 days. You can also configure a time period.
- You can move the cursor to a point in time of a chart to view the performance metric at that point in time.
Figure 3 Viewing a performance metric at a point in time
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot