Created
December 29, 2017 13:06
-
-
Save geek182/a48749f2dc6dd918cdadd3ce4449a14a to your computer and use it in GitHub Desktop.
example how monitor metrics in redis in bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
redis_memory=$(/usr/local/redis/redis-3.2.1/src/redis-cli -p $1 info memory | awk -F ":" '/used_memory:/{print $2}') | |
echo $X $redis_memory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment