فحوص PostgreSQL
تضم وحدة postgresql 6 فحوص. PostgreSQL (Flexible Server أو المستضاف ذاتيًا) عبر دور مراقبة للقراءة فقط مع pg_monitor.
تُنشأ هذه الصفحة من كتالوج الفحوص في المنتج عند بناء الوثائق، لذلك تطابق القواعد والفواصل الزمنية والخطورة الافتراضية دائمًا الإصدار الذي تقرؤه. الحدود المعروضة هي القيم الافتراضية، ويمكن للكيانات والموارد تجاوزها.
| الفحص | الفاصل الزمني | الخطورة الافتراضية | القاعدة |
|---|---|---|---|
postgresql.connectionsConnections used vs max | 60s | warning | warning > 80 percent / critical > 90 percent |
postgresql.replication_lagReplication lag | 60s | warning | warning > 60 seconds / critical > 300 seconds |
postgresql.vacuum_wraparoundTransaction ID age (wraparound risk) | 3600s | warning | warning > 1000000000 count / critical > 1500000000 count |
postgresql.bloat_estimateTable bloat (estimated, top tables) | 86400s | info | warning > 20 percent / critical > 40 percent |
postgresql.slow_queriesSlowest statements (pg_stat_statements) | 300s | info | ±2σ over 14d (learning only) |
postgresql.security_postureSecurity posture (superusers, SSL, pg_hba) | 3600s | warning | ssl = on, risky_hba_rules = 0 |
الفحوص
postgresql.connections
Connections used vs max
- ما يقيسه
used_percent(percent) · كل60s·pgsql- القاعدة
warning > 80 percent / critical > 90 percent· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Azure recommended rule for Flexible Server: connections > 80% of max.
postgresql.replication_lag
Replication lag
- ما يقيسه
lag_seconds(seconds) · كل60s·pgsql- القاعدة
warning > 60 seconds / critical > 300 seconds· الخطورة الافتراضية: warning- الإجراء
- —
postgresql.vacuum_wraparound
Transaction ID age (wraparound risk)
- ما يقيسه
xid_age(count) · كل3600s·pgsql- القاعدة
warning > 1000000000 count / critical > 1500000000 count· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Forced vacuum at ~2.1 billion; warn at 1 billion. · المصدر
postgresql.bloat_estimate
Table bloat (estimated, top tables)
- ما يقيسه
dead_percent(percent) · كل86400s·pgsql- القاعدة
warning > 20 percent / critical > 40 percent· الخطورة الافتراضية: info- الإجراء
- —
postgresql.slow_queries
Slowest statements (pg_stat_statements)
- ما يقيسه
mean_ms(milliseconds) · كل300s·pgsql- القاعدة
±2σ over 14d (learning only)· الخطورة الافتراضية: info- الإجراء
- —
- خط الأساس
- Requires the pg_stat_statements extension.
postgresql.security_posture
Security posture (superusers, SSL, pg_hba)
- ما يقيسه
security_posture· كل3600s·pgsql- القاعدة
ssl = on, risky_hba_rules = 0· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- superusers > 2 raises a warning; pg_hba_file_rules needs PostgreSQL 10+ and superuser or pg_read_server_files. · المصدر
المحتوى ذو الصلة
- PostgreSQL: المتطلبات الأساسية وكيفية إضافة الموارد
- الحدود وخطوط الأساس: كيفية تجاوز الحد الافتراضي