In this example, we show how a Redis filter can be used with the Envoy proxy. The Envoy proxy configuration includes a redis filter that routes egress requests to redis server.
docker-compose pull
docker-compose up --build
- Issue redis commands using your favourite redis client such as
redis-cli
Use redis-cli
to issue some redis commands and verify they are routed via Envoy:
> redis-cli -h localhost -p 1999 set foo foo
OK
> redis-cli -h localhost -p 1999 set bar bar
OK
> redis-cli -h localhost -p 1999 get foo
"foo"
> redis-cli -h localhost -p 1999 get bar
"bar"
Go to http://localhost:8001/stats?usedonly&filter=redis.egress_redis.command
and verify the following stats
redis.egress_redis.command.get.total: 2
redis.egress_redis.command.set.total: 2