Skip to content

Instantly share code, notes, and snippets.

@ianrumford
Last active December 11, 2015 01:49
Show Gist options
  • Save ianrumford/4526444 to your computer and use it in GitHub Desktop.
Save ianrumford/4526444 to your computer and use it in GitHub Desktop.
Riemann Feeds blog_feed_jmx2.feedspecNameNode.rb
# riemann feeds
# ./etc/feedspecNameNode.rb
config_home = './etc'
# Usual configuration
credentials_jmx_path = "#{config_home}/credentialsJMX.yaml"
jmxconfig_namenode_path = "#{config_home}/jmxconfigNameNode.yaml"
riemann_config_path = "#{config_home}/configRiemann.yaml"
# Beans confgiured by Ruby
jmxbeanconfig_namenodeactivity_path = "#{config_home}/jmxbeanconfigNameNodeActivity.rb"
jmxbeanconfig_operatingsystem_path = "#{config_home}/jmxbeanconfigOperatingSystem.rb"
{
type: :JMX,
name: 'YARN NameNode',
configuration:
{ include_configuration: [credentials_jmx_path,
jmxconfig_namenode_path,
riemann_config_path,
],
event_defaults: {service: 'NameNode', status: 'ok', tags: ['YARN', 'NameNode']},
beans: [ jmxbeanconfig_namenodeactivity_path,
jmxbeanconfig_operatingsystem_path
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment