Unable to get the host memory usage by creating new monitor in Alets

Dear community members,

i have installed the opendistro alert kibana plugin and able to see the Alert menu kibana UI.
can anyone let me know the extraction query for host memory usage for last 5 mins.

i tried with below code is not giving any result?

“size”: 0,
“query”: {
“bool”: {
“must”: [
{
“range”: {
@timestamp”: {
“gte”: “now-5m”
}
}
},
{
“term”: {
“agent.name”: “elastic-3”
}
},
{
“exists”: {
“field”: “system.memory.actual.used.pct”
}
}
]
}
}