{"id":45793,"library":"pm2-redis","title":"pm2-redis","description":"PM2 module to monitor a Redis server with Keymetrics. Current stable version is 2.1.0. Released on npm in 2016, with no recent updates. It is used as a PM2 module installed via pm2 install, not as a standard npm dependency. It monitors Redis by collecting metrics like connected clients, memory usage, commands processed, and publishes them to Keymetrics (now PM2 Plus). It is one of several community modules for monitoring databases under PM2, but is not actively maintained.","status":"maintenance","version":"2.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/pm2-hive/pm2-redis","tags":["javascript"],"install":[{"cmd":"npm install pm2-redis","lang":"bash","label":"npm"},{"cmd":"yarn add pm2-redis","lang":"bash","label":"yarn"},{"cmd":"pnpm add pm2-redis","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime dependency: module must be installed and run within PM2 process manager.","package":"pm2","optional":false},{"reason":"Connects to Redis server to gather monitoring statistics.","package":"redis","optional":false}],"imports":[{"note":"This package is a PM2 module, not a library for import in code. It is installed via pm2 install and configured via pm2 set. Do not npm install it.","wrong":"npm install pm2-redis","symbol":"default export","correct":"pm2 install pm2-redis"},{"note":"Installing globally with npm will not work as a PM2 module. Use pm2 install.","wrong":"npm install -g pm2-redis","symbol":"install","correct":"pm2 install pm2-redis"},{"note":"Configuration must be done via pm2 set commands, not by modifying package files.","wrong":"Editing config files directly without pm2 set","symbol":"configure","correct":"pm2 set pm2-redis:<key> <value>"}],"quickstart":{"code":"# Install PM2 if not already installed\nnpm install -g pm2\n\n# Install pm2-redis module\npm2 install pm2-redis\n\n# Configure Redis connection (optional, defaults to localhost:6379)\npm2 set pm2-redis:ip 127.0.0.1\npm2 set pm2-redis:port 6379\npm2 set pm2-redis:password \"yourpassword\"\n\n# Check module status\npm2 show pm2-redis\n\n# View logs\npm2 logs pm2-redis","lang":"javascript","description":"Install and configure pm2-redis as a PM2 module to monitor a Redis server."},"warnings":[{"fix":"Consider using built-in PM2 module system or alternative monitoring solutions.","message":"Keymetrics has been rebranded to PM2 Plus. The module may not work with newer versions of PM2.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Use pm2 install pm2-redis instead of npm install.","message":"Module must be installed via pm2 install, not npm install. Using npm install will not register it as a PM2 module.","severity":"gotcha","affected_versions":"all"},{"fix":"After setting configuration with pm2 set, restart the module: pm2 restart pm2-redis.","message":"Configuration changes require restarting the module to take effect.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure workerInterval is set to a number >= 1.","message":"Default workerInterval is 2 seconds but minimum is 1 second. Setting lower than 1 may cause errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.1.0':17 '2016':22 'activ':80 'client':52 'collect':48 'command':55 'communiti':70 'connect':51 'current':13 'databas':74 'depend':43 'instal':34,37 'javascript':82 'keymetr':12,61 'like':50 'maintain':81 'memori':53 'metric':49 'modul':5,33,71 'monitor':7,45,73 'npm':20,42 'one':67 'plus':64 'pm2':2,4,32,36,63,76 'pm2-redis':1 'process':56 'publish':58 'recent':25 'redi':3,9,46 'releas':18 'server':10 'sever':69 'stabl':14 'standard':41 'updat':26 'usag':54 'use':29 'version':15 'via':35","created_at":"2026-06-07T12:56:45.281323+00:00","updated_at":"2026-06-07T12:56:45.281323+00:00","problems":[{"fix":"Run pm2 install pm2-redis (not npm install).","cause":"The module was not installed correctly using pm2 install.","error":"Module pm2-redis not found"},{"fix":"Verify Redis is running and accessible. Update configuration via pm2 set pm2-redis:ip and :port if needed.","cause":"Redis server is not running or connection parameters are incorrect.","error":"Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED"},{"fix":"Set password via pm2 set pm2-redis:password \"yourpassword\" and restart the module.","cause":"Redis server requires authentication but no password is provided or password is incorrect.","error":"Error: NOAUTH Authentication required."}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pm2-hive/pm2-redis","github":"https://github.com/pm2-hive/pm2-redis","docs":null,"changelog":null,"pypi":null,"npm":"pm2-redis","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","storage"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}