Prometheus-09 Inadequacies of prometheus and near real-time performance/data loss

Inadequacies of prometheus

Prometheus is a powerful monitoring system, but it also has some shortcomings. Here are some common Prometheus deficiencies:

  1. Storage and horizontal expansion: Prometheus uses local disks to store indicator data, which may face some challenges for large-scale long-term storage and horizontal expansion. To solve this problem, Prometheus' Remote Storage Adapter can be used to push the indicator data to an external storage system, such as cloud storage or distributed database. By pushing data to an external storage system, the problem of limited local storage capacity of Prometheus can be solved, and long-term storage and horizontal expansion can be realized.

  2. High availability: Prometheus does not natively provide a high availability solution, and a single Prometheus server may become a single point of failure. In order to improve availability, you can use Prometheus' federation function (Federation) and multi-instance deployment to achieve high availability. Through the federation function, multiple Prometheus instances can be aggregated into a whole for global query and monitoring. Multi-instance deployment and load balancing: Deploy multiple Prometheus instances and use a load balancer (such as Nginx or HAProxy) to distribute requests to these instances to ensure high availability and failure resilience.

  3. Long-term storage and historical data query: Prometheus mainly focuses on real-time monitoring and short-term storage, and has relatively limited support for long-term storage and historical data query. To solve this problem, Prometheus can be combined with other long-term storage systems (such as time-series databases such as InfluxDB, OpenTSDB) or object storage (such as Amazon S3). By configuring Prometheus' Remote Write Adapter,

Guess you like

Origin blog.csdn.net/huanglu0314/article/details/131797036