You can send events and metrics that can help you figure out attack using things such as traffic by IP and server response times and status codes by annotating the telemetry and configure alerts on top of them.
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.