31 May 2018 10:31 PM - last edited on 11 Apr 2023 01:48 PM 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.
01 Jun 2018 11:00 AM
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.
13 Jun 2018 08:53 PM
This is great news. Thanks Wolfgang!
21 Aug 2018 09:57 AM
Hi @Wolfgang B. is this feature available now? thanks.
21 Aug 2018 02:44 PM
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.
22 Nov 2018 11:34 AM
Hi @Wolfgang B.,
Is this feature available now? We are on Version 1.154.146.20181010-132746 of Dynatrace Managed.
I did some API tests but I couldn't find this feature.
Thanks!
22 Nov 2018 12:39 PM
You find the agent status only on the /api/v1/infrastructure/processes endpoint. Did you check that one?
22 Nov 2018 01:21 PM
It worked! I was finding for /api/v1/infrastructure/process-group.
Thanks!
26 Nov 2018 11:00 AM
Hi
@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.
Thanks!
26 Nov 2018 11:16 AM
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.
26 Nov 2018 12:50 PM
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..?
26 Nov 2018 01:46 PM
and do you know the paramter to filter the management zone? I tried many ways and I couldn't find anywherere.
21 Aug 2019 03:26 PM
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.
21 Aug 2019 04:43 PM
Yes it is. Use the processes API as below:
/api/v1/entity/infrastructure/processes
And check for the monitoring state attribute, as shown below:
21 Aug 2019 08:59 PM
Perfect @Wolfgang B.! Thank you so much!