How to test if redis cache server functions correctly

The redis cache server is an interesting feature.
How can i test that the connection is correctly set up ?
Can i look into the redis database with redis-cli and verify a certain key and time-date or log the redis action.

1 Like

To check if it is working:

sudo ps ax | grep redis

To see the logs:

sudo tail -f /var/log/redis/redis-server.log

To do a benchmark:

sudo redis-benchmark -s /var/run/redis/redis-server.sock -q -n 100000

Thanks but my question was more how do I test if I configured the correct connection string in grafana.ini.

I had a similar question. The answer might depend on what exactly you’re trying to do with the Redis cache. It seems it’s only used in limited cases - see remote_cache 6.1.x redis configuration · Issue #16488 · grafana/grafana · GitHub

This topic was automatically closed after 365 days. New replies are no longer allowed.