流量管理員的計量與警示Traffic Manager metrics and alerts

流量管理員提供您以 DNS 為基礎的負載平衡,其中包含多個路由方法和端點監視選項。Traffic Manager provides you with DNS-based load balancing that includes multiple routing methods and endpoint monitoring options. 本文描述客戶可使用的計量與相關聯的警示。This article describes the metrics and associated alerts that are available to customers.

在流量管理員中可用的計量Metrics available in Traffic Manager

流量管理員會依設定檔提供下列計量,客戶可以使用這些計量了解其流量管理員使用情況,以及設定檔下端點的狀態。Traffic Manager provides the following metrics on a per profile basis that customers can use to understand their usage of Traffic manager and the status of their endpoints under that profile.

傳回的依端點查詢數Queries by endpoint returned

使用此計量來檢視流量管理員設定檔在指定期間內處理的查詢數目。Use this metric to view the number of queries that a Traffic Manager profile processes over a specified period. 您也可以在端點的細微層級來檢視相同的資訊,這樣有助於了解端點在來自流量管理員的查詢回應中被傳回幾次。You can also view the same information at an endpoint level granularity that helps you understand how many times an endpoint was returned in the query responses from Traffic Manager.

在下列範例中,圖 1 顯示流量管理員設定檔傳回的所有查詢回應。In the following example, Figure 1 displays all the query responses that the Traffic Manager profile returns.

所有查詢的彙總檢視

圖 1:所有查詢的彙總檢視**Figure 1: Aggregate view with all queries

圖 2 顯示相同的資訊,但是依端點分割。Figure 2 displays the same information, however, it is split by endpoints. 因此,您可以查看傳回特定端點的查詢回應量。As a result, you can see the volume of query responses in which a specific endpoint was returned.

流量管理員計量 - 每個端點的查詢量分割檢視

圖 2:顯示所傳回每個端點查詢量的分割檢視**Figure 2: Split view with query volume shown per endpoint returned

依端點的端點狀態Endpoint status by endpoint

使用此計量來了解設定檔中端點的健全狀態。Use this metric to understand the health status of the endpoints in the profile. 它採用兩個值:It takes two values:

  • 如果端點已啟動,使用 1use 1 if the endpoint is up.
  • 如果端點已關閉,使用 0use 0 if the endpoint is down.

此計量可以顯示為代表所有計量狀態的彙總值 (圖 3),或者也可以分割 (參閱圖 4) 以顯示特定端點狀態。This metric can be shown either as an aggregate value representing the status of all the metrics (Figure 3), or, it can be split (see Figure 4) to show the status of specific endpoints. 在前者的情況下,如果彙總層級選取為 [平均]****,則此計量值是所有端點狀態的算術平均值。If the former, if the aggregation level is selected as Avg, the value of this metric is the arithmetic average of the status of all endpoints. 例如,如果設定檔有兩個端點,且只有一個健康情況良好,則此計量的值會是 0.50,如圖 3 中所示。For example, if a profile has two endpoints and only one is healthy, then this metric has a value of 0.50 as shown in Figure 3.

流量管理員計量 - 端點狀態的複合檢視

圖 3:端點狀態計量的複合檢視**Figure 3: Composite view of endpoint status metric – “Avg” aggregation selected

流量管理員計量 - 端點狀態的分割檢視

圖 4:端點狀態計量的分割檢視**Figure 4: Split view of endpoint status metrics

您可以透過 Azure 監視器服務的入口網站、REST APIAzure CLIAzure PowerShell,或流量管理員的入口網站體驗來取用這些計量。You can consume these metrics through Azure Monitor service’s portal, REST API, Azure CLI, and Azure PowerShell, or through the metrics section of Traffic Manager’s portal experience.

流量管理員計量的警示Alerts on Traffic Manager metrics

除了處理及顯示來自流量管理員的計量,Azure 監視器也能讓客戶設定和接收與計量相關聯的警示。In addition to processing and displaying metrics from Traffic Manager, Azure Monitor enables customers to configure and receive alerts associated with these metrics. 您可以選擇這些計量中需要滿足什麼條件才會出現警示、監視這些條件的頻率為何,以及傳送警示給您的方式。You can choose what conditions need to be met in these metrics for an alert to occur, how often those conditions need to be monitored, and how the alerts should be sent to you. 如需詳細資訊,請參閱 Azure 監視器警示文件For more information, see Azure Monitor alerts documentation.

接下來的步驟Next steps