Skip to content

Instantly share code, notes, and snippets.

View mattkanwisher's full-sized avatar

Matthew Campbell mattkanwisher

View GitHub Profile
#!/usr/bin/env ruby
require 'socket'
require 'optparse'
# Collect INFO from Redis, report it to Graphite
opts = OptionParser.new do |opts|
opts.banner = "Usage: redis-graphite.rb redis-host[:redis-port] graphite-host"
opts.on( '-h', '--help', 'Display this screen' ) do
puts opts