官术网_书友最值得收藏!

Working with time charts

Azure Log Analytics also provides time-charting capabilities. With time charts you can show the average fiftieth and ninety-fifth percentiles of a performance counter over a period of time. Consider the need to show the average fiftieth and ninety-fifth percentiles of the bytes total/sec performance counter in bins of 1 hour. To do this, go through the following method:

  1. In the new query field in the Analytics portal, type the following query into the search field:
Perf 
| where TimeGenerated > ago(1d)  
| where CounterName == "Bytes Total/sec"  
| summarize avg(CounterValue), percentiles(CounterValue, 50,  
95)  by bin(TimeGenerated, 1h) 
  1. Click the Go button  in the upper right-hand corner of your screen to return a distribution of your data over the last day. By default, the results are displayed in a table.
  2. In the result pane, click Chart to render a multidimensional depiction of the data with various value combinations. Click Stacked Column and select Line to display a line chart:
Figure 2.23

With time charts in Azure Log Analytics, you can incorporate thresholds into charts using reference lines to easily identify and visualize when a metric exceeds a specific threshold of interest. To do this, use the extend tabular operator to create and initialize a calculated column and append it as a threshold value to the result set. To do this, go through the following steps:

  1. Modify the query expression in the search field to extend the result set with a constant column that serves as a threshold:
Perf
| where TimeGenerated > ago(1d)
| where CounterName == "Bytes Total/sec"
| summarize avg(CounterValue), percentiles(CounterValue, 50,
95) by bin(TimeGenerated, 1h)
| extend Threshold = 100000
  1. Click the Go button in the upper right-hand corner of your screen to return a distribution of your data over the last day. By default, the results are displayed in a table:
Figure 2.24
  1. In the results pane, click Chart to render a multidimensional depiction of the data with various value combinations. Click Stacked Column and select Line to display a line chart with a visible threshold line:
Figure 2.25
主站蜘蛛池模板: 探索| 宽甸| 万安县| 金门县| 大新县| 永平县| 文化| 鹤壁市| 荔波县| 台山市| 夏邑县| 汝阳县| 黄浦区| 黑河市| 嘉峪关市| 兴仁县| 雅江县| 六枝特区| 双峰县| 鄄城县| 辽宁省| 长治市| 梁河县| 东宁县| 南华县| 中阳县| 高邮市| 湟中县| 平顶山市| 巴马| 昌乐县| 内江市| 二手房| 清丰县| 西乌| 邹平县| 卓资县| 阳山县| 怀仁县| 茶陵县| 西昌市|