{"id":13477477,"url":"https://github.com/junegunn/redis-stat","last_synced_at":"2025-05-14T14:07:56.844Z","repository":{"id":37734092,"uuid":"5141498","full_name":"junegunn/redis-stat","owner":"junegunn","description":"(UNMAINTAINED) A real-time Redis monitoring tool","archived":false,"fork":false,"pushed_at":"2016-12-12T16:01:16.000Z","size":2112,"stargazers_count":2025,"open_issues_count":24,"forks_count":339,"subscribers_count":116,"default_branch":"master","last_synced_at":"2025-04-11T18:22:14.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junegunn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-22T12:47:19.000Z","updated_at":"2025-04-09T02:52:42.000Z","dependencies_parsed_at":"2022-07-12T15:18:07.148Z","dependency_job_id":null,"html_url":"https://github.com/junegunn/redis-stat","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junegunn%2Fredis-stat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junegunn%2Fredis-stat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junegunn%2Fredis-stat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junegunn%2Fredis-stat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junegunn","download_url":"https://codeload.github.com/junegunn/redis-stat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254159212,"owners_count":22024558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:43.299Z","updated_at":"2025-05-14T14:07:56.824Z","avatar_url":"https://github.com/junegunn.png","language":"Ruby","funding_links":[],"categories":["Ruby","Web 后端","Performance Monitoring"],"sub_categories":[],"readme":"# redis-stat\n\n_redis-stat_ is a simple Redis monitoring tool written in Ruby.\n\nIt is based on [INFO](http://redis.io/commands/info) command of Redis,\nand thus generally won't affect the performance of the Redis instance\nunlike the other monitoring tools based on [MONITOR](http://redis.io/commands/monitor) command.\n\n_redis-stat_ allows you to monitor Redis instances\n- either with vmstat-like output from the terminal\n- or with the dashboard page served by its embedded web server.\n\n## Installation\n\n```\ngem install redis-stat\n```\n\nIf you have trouble setting up a Ruby environment, you can [download the\nexecutable JAR file](https://github.com/junegunn/redis-stat/releases) and use\nit instead.\n\n## Usage\n\n```\nusage: redis-stat [HOST[:PORT][/PASS] ...] [INTERVAL [COUNT]]\n\n    -a, --auth=PASSWORD              Password\n    -v, --verbose                    Show more info\n        --style=STYLE                Output style: unicode|ascii\n        --no-color                   Suppress ANSI color codes\n        --csv=OUTPUT_CSV_FILE_PATH   Save the result in CSV format\n        --es=ELASTICSEARCH_URL       Send results to ElasticSearch: [http://]HOST[:PORT][/INDEX]\n\n        --server[=PORT]              Launch redis-stat web server (default port: 63790)\n        --daemon                     Daemonize redis-stat. Must be used with --server option.\n\n        --version                    Show version\n        --help                       Show this message\n```\n\n## Running redis-stat for command-line monitoring\n\n```\nredis-stat\nredis-stat 1\nredis-stat 1 10\nredis-stat --verbose\nredis-stat localhost:6380 1 10\nredis-stat localhost localhost:6380 localhost:6381 5\nredis-stat localhost localhost:6380 1 10 --csv=/tmp/output.csv --verbose\n```\n\n### Screenshot\n\n![Terminal output](https://github.com/junegunn/redis-stat/raw/master/screenshots/redis-stat-0.3.0.png)\n\n## redis-stat in web browser\n\nWhen `--server` option is set, redis-stat will open up an embedded web server (default port: 63790)\nin the background so that you can monitor Redis in your browser.\n\nSince _redis-stat_ pushes updates every interval via [Server-sent events](http://www.w3.org/TR/eventsource/),\nmodern browsers are required to view the page.\n\n```\nredis-stat --server\nredis-stat --verbose --server=8080 5\n\n# redis-stat server can be daemonized\nredis-stat --server --daemon\n\n# Kill the daemon\nkillall -9 redis-stat-daemon\n```\n\n### Screenshot\n\n![Dashboard](https://github.com/junegunn/redis-stat/raw/master/screenshots/redis-stat-web.png)\n\n## Windows support\n\nIf you're running Windows, you can only install redis-stat on\n[JRuby](http://jruby.org/). Notice that fancy terminal colors will not be\nprinted as they are not supported in the default Windows command prompt.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n### Test\n\nYou need two Redis servers running on localhost with port 6379 and 6380 with\nno password.\n\n```sh\nbundle install\nbundle exec rake test\n```\n\n## About the name _redis-stat_\n\nSince this project was supposed to be a vmstat-like monitoring script for Redis,\nnaming it _redis-stat_ seemed like a nice idea. That was when I was unaware of the existence of\nthe original [redis-stat](https://github.com/antirez/redis-tools/blob/master/redis-stat.c)\nincluded in [redis-tools](https://github.com/antirez/redis-tools) written by the creator of Redis himself. (My bad)\nAlthough the original C-version hasn't been updated for the past couple of years, you might want to check it out first.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunegunn%2Fredis-stat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunegunn%2Fredis-stat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunegunn%2Fredis-stat/lists"}