Last active
December 11, 2015 01:49
-
-
Save ianrumford/4526324 to your computer and use it in GitHub Desktop.
RIemann Feeds blog_feed_jmx2.rb
This file contains 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
#!/usr/bin/jruby | |
# riemann feeds | |
# A simple JMX feed monitoring the Hadoop YARN NameNode | |
require 'riemann-feeds' # bootstrap rieeman feeds | |
#$DEBUG = true # force diags | |
# All of the configuration in a Ruby | |
feedspec_namenode = './etc/feedconfigNameNode.rb' | |
# Make a feed handler | |
feed_handler = Riemann::Feeds::FeedHandler.new | |
# Show the feed to the handler | |
feed_handler.import_feed_or_croak(feedspecNameNode) | |
# Now tell the handler to run the feed | |
feed_handler.run_feed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment