question

Jonathan P. avatar image
Jonathan P. asked ·

API to return infrastructure health of system profile

Hi,

Is there any method available in AppMon for requesting the infrastructure health (CPU/Mem/Disk) of a particular system profile via the REST API? Before we kick off JMeter testing in our environment we want to make a call to ensure that the underlying infrastructure is in good health before starting.

If this is not directly available are there any workarounds that anyone may have implemented to achieve similiar outcome?

Any info appreciated.

Thanks

appmonrest api7.1test automation
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Andrew M. avatar image
Andrew M. answered ·

Hi Jonathan,

You'd first have to include the infrastructure measures as custom incident rules in your system profile, then once you have that, use the API to check for any alerts.

For example, the main steps you'd need to take:

  1. Create a new measure for each of CPU (eg: CPU Total Time), Disk Storage Utilization, Memory Utilization.
  2. Create an incident rule for each new measure.
  3. Call the API with the parameters to specify the system profile and a recent timeframe.

See this page for more information on the REST API syntax for the required request:

https://www.dynatrace.com/support/doc/appmon/short...

Hope that helps.

Regards,

Andrew

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.