@Neel Thank you for posting this question here.
The doc referenced in the question points to legacy or soon to be retired feature, as mentioned in the question. To enable container insights monitoring using the newer solution, the workload will have to be migrated to Kubernetes. Please see the following link for more details - Steps to transition to new container insights.
I am not sure if your workload is running as a stand along container on VM or if it is part of one of the container orchestration systems. If it is standalone, currently the AMA does not have the capability to monitor the container itself - you could use it to monitor the underlying VM though. However, if you are using one of the following supported environments, the container insights with newer agent can be used for monitoring the workload -
- Azure Kubernetes Service (AKS)
- Azure Arc-enabled Kubernetes cluster
- Azure Stack or on-premises
- AKS engine
- Red Hat OpenShift version 4.x
Please let me know if you have any questions.
Please click Accept answer and Yes if the answer helped so that it can help others in the community looking for help on similar topics.