Skip to content

Instantly share code, notes, and snippets.

@kevin1024
Created February 16, 2013 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kevin1024/4964896 to your computer and use it in GitHub Desktop.
Save kevin1024/4964896 to your computer and use it in GitHub Desktop.
Munin plugin that gives the resque rate of processing
#!/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