Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramkumardevanathan/3256a2164a875a64bceac7e09d622d9a to your computer and use it in GitHub Desktop.
Save ramkumardevanathan/3256a2164a875a64bceac7e09d622d9a to your computer and use it in GitHub Desktop.
memory bottleneck
# The Memory bottleneck symptom default is triggered by a combination
# of several metrics. Excessive page outs can be an indicator of memory
# pressure when the memory utilization is high, however memory-mapped
# file writes also generate pageouts. Under heavy memory pressure, data
# will start to be swapped out.
symptom Memory_Bottleneck type=MEMORY
rule GBL_MEM_UTIL > 95 prob 30
rule GBL_MEM_UTIL > 98 prob 20
rule GBL_MEM_PAGEOUT_BYTE_RATE > 200 prob 20
rule GBL_MEM_SWAPOUT_BYTE_RATE > 0 prob 20
rule GBL_MEM_SWAPOUT_BYTE_RATE > 10 prob 50
alarm Memory_Bottleneck > 50 for 5 minutes
type = "Memory"
start
if Memory_Bottleneck > 90 then
red alert "Memory Bottleneck probability= ", Memory_Bottleneck, "%"
else
yellow alert "Memory Bottleneck probability= ", Memory_Bottleneck, "%"
repeat every 10 minutes
if Memory_Bottleneck > 90 then
red alert "Memory Bottleneck probability= ", Memory_Bottleneck, "%"
else
yellow alert "Memory Bottleneck probability= ", Memory_Bottleneck, "%"
end
reset alert "End of Memory Bottleneck Alert"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment