junegunn / redis-stat

(UNMAINTAINED) A real-time Redis monitoring tool
MIT License
2.02k stars 339 forks source link

Improvement: add parameter to set the time span in the graphs #27

Open allanwax opened 9 years ago

allanwax commented 9 years ago

I would be nice if you could look at what's happening over the day rather than the last 50 seconds.

junegunn commented 9 years ago

Thanks for the suggestion. Maybe it's slightly beyond the scope of redis-stat as it was initially designed as a simple command-line tool like vmstat, iostat, etc. The --server option was obviously an afterthought.

And by "50 seconds", you're refering to the hard-coded HISTORY_LENGTH, right? Since the default interval is 2 seconds, the total duration becomes 100 seconds, and you can increase the interval as you like.

redis-stat currently does not allow you to change this HISTORY_LENGTH, but it has an option to send its logs to ElasticSearch, where you can inspect older log using tools like Kibana.