If you are running your application on a VM / host natively, where the host agent is running. Then APM will communicate to Host Agent without any effort!
If you are running your application as a container, then you might have to forward data generated by Middleware APM to Middleware Host Agent. You simply have to set this environment variable in your container:
172.17.0.1
If your application is running inside Kubernetes, Then you will have to forward data generated by Middleware APM to Middleware Kubernetes AgentYou simply have to set this environment variable in your container:
In the above command, We are assuming that Middleware Kubernetes Agent is running inside “mw-agent-ns” namespace.
In some exceptional cases Middleware Agent might be running in a different Kubernetes namespace. You can get the correct namespace with this command: