您好,登錄后才能下訂單哦!
查詢收集到的數據
我們可以使用如下查詢語句,查詢內存剩余內存小于1024MB的服務器:
let setMBValue = 1024;
let startDate = ago(12h);
// enter how many days/hours to look back on
Perf
| where TimeGenerated > startDate
| where ObjectName == "Memory" and CounterName == "Available MBytes Memory" and Computer in ((Heartbeat
| distinct Computer))
| extend FreeMemory = CounterValue
| summarize FreeMemoryMB = min(FreeMemory) by Computer
| where FreeMemoryMB < setMBValue
| summarize max(FreeMemoryMB) by Computer
| join
(
Perf
| where TimeGenerated > startDate
| where ObjectName == "Memory" and CounterName == "Available MBytes Memory" and Computer in ((Heartbeat
| distinct Computer))
| extend FreeMemory = CounterValue
)
on Computer
| make-series Free_Memory_MB = min(FreeMemory) on TimeGenerated from ago(8h) to now() step 2h by Computer
| render timechart
創建Alert
如果我們想要設置郵件,短信等報警規則,可以通過“+ New alert rule”來創建:
創建完成Alert以后,當系統的可用內存低于1024MB時,我們就會收到警報:
將性能圖表固定到儀表板
統一我們也可以通過點擊查詢窗口右上方的“固定”按鈕,然后選擇我們要將圖標展示在那個Dashboard,來將查詢結果展示到Azure Dashboard:
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。