Case 1 : Application Running natively on VM / Host
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:
Shell
Copy
Ask AI
MW_AGENT_SERVICE=<DOCKER_BRIDGE_GATEWAY_ADDRESS>
You can learn more about DOCKER_BRIDGE_GATEWAY_ADDRESS from the official docker docs here, but the default value is mostly 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:
Shell
Copy
Ask AI
kubectl get service --all-namespaces | grep mw-service
Need assistance or want to learn more about Middleware? Contact us at support[at]middleware.io.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.