However, the error part, is not coming from the application itself, its coming from the Identity Service Authentication error which other application stack on it.
The application is doing well, how do I monitor this on multi level by alert it not to restart as its coming from other application integrated with it.
If by multi-level, you mean configure alerts to be triggered based on multiple conditions being met, I'm afraid that's no possible at the moment.
But since you're using synthetics scripts, programmatically handling errors is possible , which would let you decide what you consider a "down" monitor on your side. Here's an example on how to handle a navigation error:
step('Check navigation error', async () => {
try{
await page.goto('https://<test page domain>');
}catch(e){
// Handle error logic here
// Or throw to fail
throw e;
}
});
That's the general approach, you'll need to implement the error handling logic tailored to your use case.
Determining what is considered a failure and how to handle errors will depend solely on your use case, I can't really provide you the logic since I'm not familiar with your setup. If you have a fronting service that is failing, you might be able to issue a different request to check its status, ymwv.
A synthetic script is basically arbitrary code, so you can run multiple requests or queries in a single script and combine them freely with error-handling logic.
I'd suggest looking into Elastic Synthetics docs and checking out Playwright syntax, which powers our synthetic agent, to get a feel of what's possible to code into a script.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.