Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 575 Bytes

File metadata and controls

32 lines (20 loc) · 575 Bytes

whoopsmonitor-check-redis-connect

Check if the connection to Redis is fine.

Environmental variables

  • WM_CONNECTION_STRING - Redis connection string

Example

There is an example of the check at Whoops Monitor configuration tab or the .env file.

WM_CONNECTION_STRING=redis://user:password@host

Output

  • Exit code 0 - Connection is ok.
  • Exit code 2 - Some error appeared.

Build

docker build -t whoopsmonitor-check-redis-connect .

Run

docker run --rm --env-file .env whoopsmonitor-check-redis-connect