فحوص SQL Server
تضم وحدة sqlserver 13 فحصًا. SQL Server على جهاز ظاهري أو محليًا — سلامة المثيل وأداؤه وسعته (T-SQL، حساب تسجيل دخول بالإذن VIEW SERVER STATE).
تُنشأ هذه الصفحة من كتالوج الفحوص في المنتج عند بناء الوثائق، لذلك تطابق القواعد والفواصل الزمنية والخطورة الافتراضية دائمًا الإصدار الذي تقرؤه. الحدود المعروضة هي القيم الافتراضية، ويمكن للكيانات والموارد تجاوزها.
| الفحص | الفاصل الزمني | الخطورة الافتراضية | القاعدة |
|---|---|---|---|
sqlserver.cpu_percentCPU utilization (SQL process) | 60s | warning | warning > 80 percent · 15m / critical > 90 percent · 5m |
sqlserver.ple_secondsPage life expectancy | 60s | warning | warning < 1800 seconds · 10m / critical < 600 seconds · 5m |
sqlserver.batch_requestsBatch requests per second | 60s | info | ±2σ over 14d (learning only) |
sqlserver.blocked_sessionsBlocked sessions | 30s | warning | warning >= 1 count · 30s / critical >= 5 count · 60s |
sqlserver.deadlocks_per_minDeadlocks per minute | 60s | warning | warning > 0 per_minute / critical >= 5 per_minute |
sqlserver.top_waitsTop wait categories | 60s | info | ±2σ over 14d (learning only) |
sqlserver.log_space_percentTransaction log space used | 300s | warning | warning > 75 percent / critical > 90 percent |
sqlserver.backup_age_fullLast full backup age | 600s | warning | warning > 1560 minutes / critical > 2880 minutes |
sqlserver.backup_age_logLast log backup age | 300s | warning | warning > 30 minutes / critical > 60 minutes |
sqlserver.agent_jobs_failedSQL Agent job failures (last 24 h) | 300s | warning | warning >= 1 count / critical >= 3 count |
sqlserver.errorlog_severityError log entries with severity 16+ | 120s | warning | warning >= 1 count / critical >= 5 count |
sqlserver.build_versionBuild and update level | 3600s | info | any change |
sqlserver.linked_server_pingLinked server reachability and latency | 300s | critical | warning > 1000 milliseconds / critical > 5000 milliseconds · 15m |
الفحوص
sqlserver.cpu_percent
CPU utilization (SQL process)
- ما يقيسه
cpu_percent(percent) · كل60s·tsql- القاعدة
warning > 80 percent · 15m / critical > 90 percent · 5m· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Sustained CPU above 80% warrants investigation; above 90% for minutes is critical on production. · المصدر
sqlserver.ple_seconds
Page life expectancy
- ما يقيسه
ple_seconds(seconds) · كل60s·tsql- القاعدة
warning < 1800 seconds · 10m / critical < 600 seconds · 5m· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Rule of thumb: 300 s per 4 GB of buffer pool; defaults assume a 24 GB pool. Adjust per instance.
sqlserver.batch_requests
Batch requests per second
- ما يقيسه
batch_requests_per_sec(per_second) · كل60s·tsql- القاعدة
±2σ over 14d (learning only)· الخطورة الافتراضية: info- الإجراء
- —
- خط الأساس
- No fixed threshold; adaptive baseline flags unusual throughput for this instance.
sqlserver.blocked_sessions
Blocked sessions
- ما يقيسه
blocked_sessions(count) · كل30s·tsql- القاعدة
warning >= 1 count · 30s / critical >= 5 count · 60s· الخطورة الافتراضية: warning- الإجراء
- Identify the head blocker (sys.dm_exec_requests / sp_WhoIsActive) before killing anything.
- خط الأساس
- Any blocking lasting more than 30 s deserves attention; chains of 5+ sessions are critical.
sqlserver.deadlocks_per_min
Deadlocks per minute
- ما يقيسه
deadlocks_per_min(per_minute) · كل60s·tsql- القاعدة
warning > 0 per_minute / critical >= 5 per_minute· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Azure Monitor recommended rule for SQL: alert on any deadlock.
sqlserver.top_waits
Top wait categories
- ما يقيسه
wait_time_ms(milliseconds) · كل60s·tsql- القاعدة
±2σ over 14d (learning only)· الخطورة الافتراضية: info- الإجراء
- —
- خط الأساس
- Delta-based; the timeline drill-down uses this series.
sqlserver.log_space_percent
Transaction log space used
- ما يقيسه
log_space_percent(percent) · كل300s·tsql- القاعدة
warning > 75 percent / critical > 90 percent· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Log at 75% means the next growth or a long transaction may fill the volume.
sqlserver.backup_age_full
Last full backup age
- ما يقيسه
full_age_minutes(minutes) · كل600s·tsql- القاعدة
warning > 1560 minutes / critical > 2880 minutes· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Daily full: warn at 26 h, critical at 48 h. Tie to the entity's RPO policy. A database never backed up counts as infinitely old.
sqlserver.backup_age_log
Last log backup age
- ما يقيسه
log_age_minutes(minutes) · كل300s·tsql- القاعدة
warning > 30 minutes / critical > 60 minutes· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- RPO 15 min → warn at 30, critical at 60.
sqlserver.agent_jobs_failed
SQL Agent job failures (last 24 h)
- ما يقيسه
failed_jobs(count) · كل300s·tsql- القاعدة
warning >= 1 count / critical >= 3 count· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Any failed job is at least a warning; backup/maintenance jobs can be promoted to critical by tag.
sqlserver.errorlog_severity
Error log entries with severity 16+
- ما يقيسه
errorlog_entries(count) · كل120s·tsql- القاعدة
warning >= 1 count / critical >= 5 count· الخطورة الافتراضية: warning- الإجراء
- —
- خط الأساس
- Severity 16+ indicates errors the application must handle; 20+ are fatal. Counts entries of the last 5 minutes.
sqlserver.build_version
Build and update level
- ما يقيسه
build_info· كل3600s·tsql- القاعدة
any change· الخطورة الافتراضية: info- الإجراء
- —
- خط الأساس
- Inventory only; the updates module compares it with the latest CU/GDR.
sqlserver.linked_server_ping
Linked server reachability and latency
- ما يقيسه
latency_ms(milliseconds) · كل300s·tsql- القاعدة
warning > 1000 milliseconds / critical > 5000 milliseconds · 15m· الخطورة الافتراضية: critical- الإجراء
- Check network path (VPN tunnel, firewall) first; then the remote service; then provider credentials on the linked server.
- خط الأساس
- Warn when a remote round trip exceeds 1 s; 3 consecutive failures or timeouts are critical.
المحتوى ذو الصلة
- SQL Server: المتطلبات الأساسية وكيفية إضافة الموارد
- الحدود وخطوط الأساس: كيفية تجاوز الحد الافتراضي