Service monitors Redis keys created without any Time To Live (TTL) and alerts based on different configurations provided by different teams.
NOT FOR PRODUCTION ENVIRONMENTS. Preferred only on Testing/Staging environments.
To stop or try to alert devs before persisting keys to redis with no TTL.
Most of the time, the reason will be keys with no Time to live(TTL). That means, the data exists forever until we delete it explicitly.
- Duplicate env.sample file and fill with values.
- Move this file to
services
folder. - Run
sh run_from_bash.sh
- Crontab runs once a day. Can be configured in the file called
crontab
. - Each file in
services
folder is picked. - Evaluate ttl missing keys based on configuration.
- Notify teams about the TTL missing keys.
docker build --build-arg env_host=hostname --build-arg env_port=30363 -t redis-ttl-missing-alert-service.
docker run redis-ttl-missing-alert-service:latest
1.docker build --build-arg env_host=hostname --build-arg env_port=30363 -t redis-ttl-missing-alert-service.
2.docker container create redis-ttl-missing-alert-service:latest
3.docker start #container_name