Created
October 14, 2021 11:02
-
-
Save FrancescoBonizzi/fd2214c00782ea22274242c0455613d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Rule() | |
{ | |
RuleName = "RAM full and CPU busy last minute", | |
BooleanExpression = $"{Metrics.CPUPercentage} and {Metrics.UsedRAMGigaBytes}", | |
ResultingAlertGravity = AlertGravity.Critical, | |
MessageFormat = "Attention! Last minute CPU ({0}%) and RAM ({1} GB) are very critical! (Last value collection time: {2})", | |
TimeFrameMinutes = 1, | |
DataEvaluationFunctionDescription = new DataEvaluationFunctionDescription[] | |
{ | |
new DataEvaluationFunctionDescription() | |
{ | |
Metric = Metrics.CPUPercentage, | |
Threshold = 90 | |
}, | |
new DataEvaluationFunctionDescription() | |
{ | |
Metric = Metrics.UsedRAMGigaBytes, | |
Threshold = 7 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment