Work & Servers: Console Abuse
In case you wanted horrible console commands that return stats from Redis servers for monitoring:
# kbps out
echo info stats | redis-cli | sed '1,7d' | sed '2,20d' | sed -r 's/.*instantaneous_output_kbps:([0-9\.]+).*/\1/g'
# kbps in
echo info stats | redis-cli | sed '1,6d' | sed '2,20d' | sed -r 's/.*instantaneous_input_kbps:([0-9\.]+).*/\1/g'
# Connected clients
echo info clients| redis-cli | sed '1d' | sed '2,10d' | sed -r 's/.*connected_clients:([0-9]+).*/\1/g'
Work & Servers: Console Abuse
@mawr I am going to tell the Society for Protection and Shelter of Consoles! SfPaSoC unite!