Building a Database Monitoring System: From Exporters to Alert Rules in Practice

Overview When the database slows down, the business slows down. Every ops engineer has heard this, but honestly, not many teams do database monitoring right. I’ve seen too many teams whose database monitoring looks like this: Zabbix templates running decade-old metrics, only two alert rules — “CPU over 90%” and “disk full” — while connection count, lock waits, cache hit rate, replication lag, and other metrics that actually provide early warning are not being collected at all....

July 17, 2026 · 21 mins · 4265 words · Xu Baojin

PostgreSQL High Availability: Patroni and etcd Cluster Deployment

Overview PostgreSQL High Availability: Patroni and etcd Cluster Deployment is an essential skill in SRE operations. In production environments, mastering these techniques can significantly improve system stability and operational efficiency. Why PostgreSQL High Availability Matters As systems grow in scale and complexity, traditional operations approaches struggle to meet the demands of modern distributed systems. PostgreSQL High Availability helps operations teams: Rapid Problem Resolution: Systematic tools and methods reduce troubleshooting time Improved System Visibility: Establish comprehensive monitoring and observability Proactive Fault Prevention: Identify and fix potential risks before they cause outages Resource Optimization: Allocate and schedule resources efficiently Core Concepts and Principles Basic Concepts The core of PostgreSQL High Availability lies in establishing standardized processes and automated toolchains....

October 16, 2025 · 3 mins · 570 words · XuBaojin