Michael Rodrigues's post in Groovy Expect Scripting -- "]$" prompts was marked as the answer
@Joe Tran you were close, you should be able to match it with this:
The expect() method actually takes a Java Pattern which is compiled down to a Regex object.
You can see if your Pattern converts to the expected Regex by using:
We should really add a method that takes a plain old regex, sorry for any confusion. Let me know if the above doesn't work for you.
Michael Rodrigues's post in How to find Average value of a metric/field for a particular time range was marked as the answer
Hi @Archana, I think we do what you're looking for, but the feature is sort of hidden.
Open the expanded graph, then expand the instances pane at the bottom.
On the right side of the instance pane, there's another downward pointing arrow. If you click on that arrow and select "Show Boundaries' you'll see min/max/avg for each instance for the selected time range.
You may have to aggregate instances into one to get the average across multiple instances.
Michael Rodrigues's post in Effective Disk Monitoring was marked as the answer
You should be able to do this with a Complex Datapoint and Datapoint Expressions: https://www.logicmonitor.com/support/datasources/creating-managing-datasources/datapoint-expressions/
if( and( gt(StorageUsed, 90), lt(StorageSize, 5) ), 1, 0)
Then just set an alert threshold if that Complex Datapoint returns 1.