## 多個度量線和圖表Multiple metric lines and charts

• 將相同圖形上的相關計量相互關聯，以查看一個值與另一個值之間的關聯性。Correlate related metrics on the same graph to see how one value relates to another.
• 顯示使用不同測量單位的計量（以接近接近的方式）。Display metrics that use different units of measure in close proximity.
• 以視覺化方式匯總和比較多個資源的計量。Visually aggregate and compare metrics from multiple resources.

## 彙總Aggregation

• 如果時間細微性設定為30分鐘，則會從48匯總資料點繪製圖表。If the time granularity is set to 30 minutes, the chart is drawn from 48 aggregated data points. 也就是說，折線圖會連接圖表繪圖區域中的48點 (每小時24小時 x 2 個資料點) 。That is, the line chart connects 48 dots in the chart plot area (24 hours x 2 data points per hour). 每個資料點都代表每個相關30分鐘期間內發生之伺服器要求的所有已捕獲回應時間的 平均值Each data point represents the average of all captured response times for server requests that occurred during each of the relevant 30-minute time periods.
• 如果您將時間細微性切換至15分鐘，您會收到96個匯總的資料點。If you switch the time granularity to 15 minutes, you get 96 aggregated data points. 也就是說，每小時會取得24小時 x 4 個資料點。That is, you get 24 hours x 4 data points per hour.

• Sum：匯總間隔期間所捕獲的所有值的總和。Sum: The sum of all values captured during the aggregation interval.

• Count：匯總間隔期間所捕獲的度量數目。Count: The number of measurements captured during the aggregation interval.

當計量一律以1值來捕捉時，計數匯總會等於 sum 匯總。When the metric is always captured with the value of 1, the count aggregation is equal to the sum aggregation. 當計量追蹤相異事件的計數，且每個度量都代表一個事件時，此案例很常見。This scenario is common when the metric tracks the count of distinct events and each measurement represents one event. 程式碼會在每次新要求抵達時發出度量記錄。The code emits a metric record every time a new request arrives.

• 平均：匯總間隔期間所捕獲的度量值平均值。Average: The average of the metric values captured during the aggregation interval.

• 小值：匯總間隔期間所捕獲的最小值。Min: The smallest value captured during the aggregation interval.

• 最大 值：匯總間隔期間所捕獲的最大值。Max: The largest value captured during the aggregation interval.

## 篩選器Filters

1. 選取圖表上方的 [ 加入篩選]。Above the chart, select Add filter.

2. 選取要篩選的維度 (屬性) 。Select a dimension (property) to filter.

3. 選取您要套用至維度 (屬性) 的運算子。Select the operator you want to apply against the dimension (property). 預設運算子是 = (equals) The default operator is = (equals)

4. 選取您要在繪製圖表時套用至篩選的維度值 (此範例顯示篩選出成功的儲存體交易) ：Select which dimension values you want to apply to the filter when plotting the chart (this example shows filtering out the successful storage transactions):

5. 選取篩選器值之後，請按一下 [篩選器選取器] 以外的位置以將它關閉。After selecting the filter values, click away from the Filter Selector to close it. 現在圖表會顯示失敗的儲存體交易數目：Now the chart shows how many storage transactions have failed:

6. 您可以重複步驟1-5，以將多個篩選套用至相同的圖表。You can repeat steps 1-5 to apply multiple filters to the same charts.

## 度量分割Metric splitting

### 套用分割Apply splitting

1. 選取圖表上方的 [套用 分割]。Above the chart, select Apply splitting.

注意

具有多個計量的圖表無法使用分割功能。Charts that have multiple metrics can't use the splitting functionality. 此外，雖然圖表可以有多個篩選，但它只能有一個分割維度。Also, although a chart can have multiple filters, it can have only one splitting dimension.

2. 選擇要分割圖表的維度：Choose a dimension on which to segment your chart:

圖表現在會顯示多行，每個維度區段各有一個：The chart now shows multiple lines, one for each dimension segment:

3. 選擇依選取的維度分割之後，要顯示的值數目限制。Choose a limit on the number of values to be displayed after splitting by selected dimension. 預設限制為10，如上圖所示。The default limit is 10 as shown in the above chart. 限制的範圍是 1-50。The range of limit is 1 - 50.

4. 選擇區段上的排序次序： [遞增] 或 [遞減]。Choose the sort order on segments: Ascending or Descending. 預設選取範圍為遞減。The default selection is descending.

5. 按一下 [分組選取器] 以外的位置以將它關閉。Click away from the Grouping Selector to close it.

注意

若要隱藏您的案例不相關的區段，並讓圖表更容易閱讀，請在相同維度上同時使用篩選和分割。To hide segments that are irrelevant for your scenario and to make your charts easier to read, use both filtering and splitting on the same dimension.

## 釘選到儀表板Pinning to dashboards

[警示規則建立] 窗格隨即開啟。The alert rule creation pane opens. 在窗格中，您會看到圖表的度量維度。In the pane, you see the chart's metric dimensions. 窗格中的欄位會預先填入，以協助您自訂規則。The fields in the pane are prepopulated to help you customize the rule.

## 將計量與記錄相互關聯Correlate metrics to logs

• Application InsightsApplication Insights
• AutoscaleAutoscale
• 應用程式服務App Services
• 儲存體Storage

### 深入探索記錄的常見問題Common problems with Drill into Logs

• 記錄和查詢已停用-若要查看建議的記錄和查詢，您必須將診斷記錄傳送至 Log Analytics。Log and queries are disabled - To view recommended logs and queries, you must route your diagnostic logs to Log Analytics. 請閱讀 這份檔 以瞭解如何進行。Read this document to learn how to do this.
• 僅提供活動記錄-[深入探討記錄] 功能僅適用于選取的資源提供者。Activity logs are only provided - The Drill into Logs feature is only available for select resource providers. 依預設，會提供活動記錄。By default, activity logs are provided.

## 疑難排解Troubleshooting

• 篩選適用于窗格上的所有圖表。Filters apply to all of the charts on the pane. 當您將焦點放在圖表上時，請確定您未設定會排除另一個圖表上所有資料的篩選。While you focus on a chart, make sure that you don't set a filter that excludes all the data on another chart.

• 若要在不同的圖表上設定不同的篩選，請在不同的 blade 中建立圖表。To set different filters on different charts, create the charts in different blades. 然後將圖表另存為個別的我的最愛。Then save the charts as separate favorites. 如果您想要的話，可以將圖表釘選到儀表板，讓您可以同時查看這些圖表。If you want, you can pin the charts to the dashboard so you can see them together.

• 如果您依計量未定義的屬性來分割圖表，則圖表不會顯示任何內容。If you segment a chart by a property that the metric doesn't define, the chart displays no content. 請嘗試清除分割 (分割)，或選擇不同的屬性。Try clearing the segmentation (splitting), or choose a different property.