設定基本警示Set up basic alerts

管理資源的重要部分是在發生問題時收到通知。A key part of managing resources is getting notified when problems occur. 警示會根據計量、記錄或服務健康情況問題的觸發程式,主動通知您重大情況。Alerts proactively notify you of critical conditions, based on triggers from metrics, logs, or service-health issues. 在上架 Azure 伺服器管理服務時,您可以設定警示和通知,讓您的 IT 小組知道任何問題。As part of onboarding the Azure server management services, you can set up alerts and notifications that help keep your IT teams aware of any problems.

Azure 監視器警示Azure Monitor alerts

Azure 監視器提供 警示 功能,可在發生錯誤時透過電子郵件或訊息通知您。Azure Monitor offers alerting capabilities to notify you, via email or messaging, when things go wrong. 這些功能是以常見的資料監視平臺為基礎,其中包含伺服器和其他資源所產生的記錄和計量。These capabilities are based on a common data-monitoring platform that includes logs and metrics generated by your servers and other resources. 您可以使用 Azure 監視器中的一組通用工具來分析合併自多個資源的資料,並使用它來觸發警示。By using a common set of tools in Azure Monitor, you can analyze data that's combined from multiple resources and use it to trigger alerts. 這些觸發程式可以包括:These triggers can include:

  • 度量值。Metric values.
  • 記錄搜尋查詢。Log search queries.
  • 活動記錄事件。Activity log events.
  • 基礎 Azure 平臺的健康情況。The health of the underlying Azure platform.
  • 測試網站的可用性。Tests for website availability.

如需此服務所收集的監視資料來源的詳細說明,請參閱 Azure 監視器資料來源清單See the list of Azure Monitor data sources for a more detailed description of the sources of monitoring data that this service collects.

如需使用 Azure 入口網站手動建立及管理警示的詳細資訊,請參閱 Azure 監視器檔For details about manually creating and managing alerts by using the Azure portal, see the Azure Monitor documentation.

在本指南中,我們建議您建立一組15個警示來監視基本的基礎結構。In this guide, we recommend that you create a set of 15 alerts for basic infrastructure monitoring. 警示工具 組 GitHub 存放庫中尋找部署腳本。Find the deployment scripts in the Alert Toolkit GitHub repository.

此封裝會建立下列警示:This package creates alerts for:

  • 磁碟空間不足Low disk space
  • 可用記憶體不足Low available memory
  • 高 CPU 使用率High CPU use
  • 未預期的關機Unexpected shutdowns
  • 檔案系統損毀Corrupted file systems
  • 常見的硬體故障Common hardware failures

封裝會使用 HPE 伺服器硬體作為範例。The package uses HPE server hardware as an example. 變更相關聯設定檔中的設定,以反映您的 OEM 硬體。Change the settings in the associated configuration file to reflect your OEM hardware. 您也可以在設定檔中新增更多效能計數器。You can also add more performance counters to the configuration file. 若要部署封裝,請執行檔案 New-CoreAlerts.ps1To deploy the package, run the New-CoreAlerts.ps1 file.

下一步Next steps

瞭解支援您進行中作業的作業和安全性機制。Learn about operations and security mechanisms that support your ongoing operations.