MySQL filter

    Sandbox environment

    Setup your sandbox environment with Docker and Docker Compose, and clone the Envoy repository with Git.

    Used to make requests.

    In this example, we show how the MySQL filter can be used with the Envoy proxy.

    The Envoy proxy configuration includes a MySQL filter that parses queries and collects MySQL-specific metrics.

    Build and start the containers.

    Terminal 1

    Use to issue some commands and verify they are routed via Envoy. Note that the current implementation of the protocol filter was tested with MySQL v5.7. It may, however, not work with other versions of MySQL due to differences in the protocol implementation, but it won’t affect normal progress of client-server communication.

    Terminal 1

    Check egress stats were updated.

    Terminal 1

    Terminal 1

    See also

    Learn more about using the Envoy MySQL filter.

    Envoy admin quick start guide

    Quick start guide to the Envoy admin interface.

    The MySQL database.