Alerting In Elastic APM

Wanted to know if alerting is available in Elastic APM for RUM.
Wanted to report any anomaly in metrics like error rate.

If yes from which version is it available and is it free of cost or we need to purchase some licensed version ?

It would be great if anyone can pin relevant docs for the same.

TIA