When using MySQL Enterprise Agent as a proxy service, the queries from user applications are sent through the MySQL Enterprise Agent, which forwards them to a MySQL server, returning the query results while recording query statistical information. When operating in this mode, the agent acts as both the agent and proxy for the same monitored MySQL server, as shown in the following figure.
Figure 1.3. The MySQL Enterprise Monitor Architecture when using proxy and agent services for the same MySQL Server
The figure shows a single MySQL Enterprise Agent and two of the components, the core agent service and the MySQL Enterprise Agent Proxy Service. The MySQL Enterprise Agent is connected to the single monitored MySQL server. In turn, the MySQL Enterprise Agent is connected to the MySQL Enterprise Service Manager to provide monitoring and query analyzer data, and to the user application, which uses the proxy service to supply query analyzer data.