We want to automate the pod restart in dynatrace if there is a performance issue with one of the pod like there is high cpu etc etc and we want to restart that pod, in that case we want dynatrace to come into the picture and call our api to either restart or scale the pods. Please kindly provide some insight to work on this. We need to achieve with with our api.
You can use Webhook integrations for Problems detected by Dynatrace to call you API.
You could restart pods as soon as they are affected by a problem, or define Metric events for alerting to specify triggers for problems that you want to use for the restart, like high CPU consumption.