27 Dec 2022 12:41 PM
Hi Team,
We have several custom extension in our environment. For which, there are huge number of endpoints added.
Sometimes, few endpoints goes into error state with any reason like authentication error or some other error.
One possible way I think of is to extract a list of endpoints with their state using API, This will give me API URL which I can put into monitoring under HTTP monitor and ingest event (2nd request) to same HTTP monitor to post list of endpoints that are in error. However, I can see, limitations with HTTP monitor like, response body is limited to grab 50kb string. While developing script, code debugging is also difficult because api.info also has limitation of 200 character. Let me know if anyone has achieved this successfully using any synthetic monitor.
Or can you guys think any better way to monitor endpoints? Need your expert advise.
Regards,
AK
Solved! Go to Solution.
27 Dec 2022 03:48 PM - edited 27 Dec 2022 03:48 PM
@AK, in our extensions we are "baking" several ways to get around the issues you describe. Some of them include:
There are other approaches, and one that I have not tried yet is an extension that seems to upload logs from other extensions directly to Dynatrace. I tried to search it now, but couldn't find it. I'll try to find it and post it back here.
27 Dec 2022 05:15 PM
Hi @AntonioSousa,
Thank you for the response. It seems, we have several other options to get endpoints monitored.
However, I would like to describe my idea in depth i.e. to use HTTP monitor,
So this HTTP monitor will have two requests,
First will fetch all endpoint details with their individual status and store it.
Second will have ingest API call, which can use list of endpoints in error (captured from previous request) and ultimately trigger an availability event. This will generate problem notification and have those errored endpoint list.
I will definitely explore on the suggestion you gave but just shared my thoughts.
Regards,
AK
27 Dec 2022 07:03 PM
@AK,
Looks good to me. Even if you can put some failure logic in the extensions, and that's of course good, it really doesn't help when it fails by itself. Having another technology (synthetics) doing that monitoring does help in those and other circumstances...
02 Jan 2023 10:49 AM
Hi,
I'm able to achieve the desired result via HTTP monitor and it is working awesome.
@AntonioSousa, Thank you for your suggestion and help in this case.
Regards,
AK