31 May 2018 02:31 PM - last edited on 11 Apr 2023 05:48 AM by Karolina_Linda
I've combed through the API data quite a bit for Process Groups, Processes and Services, searching for a property to help us identify through the API when Dynatrace requires a process to be restarted in order to continue monitoring.
I'm basically trying to identify the state in the following photo via API.
Solved! Go to Solution.
There is an enhancement on the way already that allows you to query the monitoring state of processes through the normal processes API. I think that will help you to solve your use-case. This enhancement should be available in Dynatrace SaaS within the next 2 weeks.
This is great news. Thanks Wolfgang!
It should for Dynatrace SaaS deployments. Dynatrace Managed should come with release 150. You can easily check if its available by fetching the process group API which returns the agent injections state and if a restart is necessary.
Hi @Wolfgang B.,
Is this feature available now? We are on Version 188.8.131.5281010-132746 of Dynatrace Managed.
I did some API tests but I couldn't find this feature.
You find the agent status only on the /api/v1/infrastructure/processes endpoint. Did you check that one?
It worked! I was finding for /api/v1/infrastructure/process-group.
@Wolfgang B. in our test enviroment(3 Dynatrace Nodes) we can get the JSON after some time outs, in Production enviroment(10 Dynatrace Nodes) we can not get the API JSON due to the time out, even after 100 tries.
Can we extend the time out time for production enviroment? Now, it seems to be configured with the default of 30 seconds.
Please try to filter the result set by using tags or management zones. The overall result set is simply to huge to fetch it in one query. We are working on speeding up things right now but also in the future you will have to filter huge environments before you get a reasonable fetchable result.
Understood... I also would like to understand why some times we get time out and some times the request responds in 2 seconds(the same request in Test enviroment)...
Is there any queue for this requests..?
and do you know the paramter to filter the management zone? I tried many ways and I couldn't find anywherere.
Hello @Wolfgang B.! My question is the same of @Israel O. is this feature available now for managed environment? If yes, Could you provider an example? Thank you so much.
Yes it is. Use the processes API as below:
And check for the monitoring state attribute, as shown below: