We need to tracks "Bytes In Use" for the GC Heap on all agents, and if one of them equals 0 Bytes In Use, its necessary to send an email.
I will attach some images to see what we already got.
We can't see any "Bytes In Use" on Preview... If we check the agents, they have data on "Bytes In Use".
Another thing, in the preview, the result is the sum of "Bytes In Use" of all agents?
If so, how can we do just to alert in case of one of the agents have 0 Bytes In Use ?
What we want its fire an alert in case of one of all agents reports 0 Bytes In Use.
The last | in your regex is not escaped.
You have (.*)\|(.*)\|(.*)|GC Heap:Bytes In Use
Between (.*) | GC use the \ character to escape it.
I did the change you said but we lost all the agents
Agents Expressions: (.*)\|(.*)\|(.*)\|GC Heap:Bytes In Use
In your last screenshot, you have the Management Module selected and the regex it is asking for is for an agent expression, not a metric regex. So change that to (.*)\|(.*)\|(.*) as you see below.
Then go to your GC Heap Bytes in Use metric group, select that and use the following as your regex as per below.
Marking as correct answer since it was answered and branched off new question to How can i set the Threshold value for megabytes?