Created
February 16, 2013 00:56
Munin plugin that gives the resque rate of processing
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/sh | |
VALS=$(curl --silent http://127.0.0.1:5678/stats.txt) | |
PROCESSED=$(echo "$VALS" | grep "resque.processed") | |
case $1 in | |
config) | |
cat <<'EOM' | |
graph_title Resque Processed | |
graph_vlabel processed | |
processed.label Processed | |
processed.type COUNTER | |
EOM | |
exit 0;; | |
esac | |
RATE="$(echo $PROCESSED | cut -d "=" -f 2 )" | |
echo "processed.value ${RATE}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment