Last active
December 11, 2015 01:49
-
-
Save ianrumford/4526444 to your computer and use it in GitHub Desktop.
Riemann Feeds blog_feed_jmx2.feedspecNameNode.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
# 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