Monitoring
TOC
Overview
The monitoring data embedded in the panel can be used for PostgreSQL monitoring and alerting from the perspectives of resources, performance, and capacity, and it supports the configuration of notification policies.
The intuitively presented monitoring data can provide decision support for operational inspections or performance tuning.
Monitoring Metrics
The platform collects commonly used monitoring metrics related to the resource, performance, and capacity of PostgreSQL by default. In the instance's Monitoring tab, real-time monitoring data of these metrics can be viewed.
Main Monitoring Item Descriptions
Resource Usage
- CPU Utilization: Reflects the CPU load of PostgreSQL processes
- Memory Usage: Includes resident memory and virtual memory, monitoring for memory leaks and overuse
- File Descriptors: Ensure that the system limits are not reached
Performance Metrics
- Transaction Statistics: Tracks the commit/rollback rate for each database, assessing transaction success rates
- Query Statistics: Analyzes the ratio of various types of queries to identify performance bottlenecks
- Cache Hit Rate: Evaluates the efficiency of the shared buffer, which should maintain a hit rate above 95%
- Lock Statistics: Detects contention for table-level locks
Capacity Planning
- Connection Count: Monitors connection pool usage and adjusts max_connections in a timely manner
- Temporary Files: Identifies large queries that need optimization
- Checkpoints: Evaluates the impact of checkpoint frequency on performance
NOTE
- Some metrics require the statistics collector to be enabled
- It is recommended to set alert thresholds for critical metrics