您好,登錄后才能下訂單哦!
查詢收集到的數(shù)據(jù)
我們可以使用如下查詢語(yǔ)句,查詢內(nèi)存剩余內(nèi)存小于1024MB的服務(wù)器:
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
創(chuàng)建Alert
如果我們想要設(shè)置郵件,短信等報(bào)警規(guī)則,可以通過(guò)“+ New alert rule”來(lái)創(chuàng)建:
創(chuàng)建完成Alert以后,當(dāng)系統(tǒng)的可用內(nèi)存低于1024MB時(shí),我們就會(huì)收到警報(bào):
將性能圖表固定到儀表板
統(tǒng)一我們也可以通過(guò)點(diǎn)擊查詢窗口右上方的“固定”按鈕,然后選擇我們要將圖標(biāo)展示在那個(gè)Dashboard,來(lái)將查詢結(jié)果展示到Azure Dashboard:
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。