cookbook 'apache-newrelic-plugin', '= 0.1.2'
apache-newrelic-plugin (5) Versions 0.1.2 Follow0
Installs/Configures apache-newrelic-plugin
cookbook 'apache-newrelic-plugin', '= 0.1.2', :supermarket
knife supermarket install apache-newrelic-plugin
knife supermarket download apache-newrelic-plugin
apache-newrelic-plugin
This plugin allows you to monitor 1 or more Apache instances (2.2 or 2.4, as long as they support mod-status).
Requires Java and a valid New Relic license
Atributes
node['apache_newrelic_plugin']['license']
- Your New Relic license (defaults to node['newrelic']['license']
)
node['apache_newrelic_plugin']['agents']
- A list of Apache instances you want to monitor. Format below
Agent node format
[ { :name => 'my-hostname', :protocol => 'http', :host => 'localhost', :port => 8080, :mod_status_url => '/server-status?auto', :connection_timeout => 15000, :read_timeout => 15000 }, :name => 'my-hostname-2', :protocol => 'https', :host => 'localhost', :port => 8080, :mod_status_url => '/server-status?auto', :connection_timeout => 15000, :read_timeout => 15000 } ]
Default values for Agents:
protocol: http
host: localhost
port: 8080
mod_status_url: /server-status?auto
connection_timeout: 15000 (15 seconds)
read_timeout: 15000 (15 seconds)
Dependent cookbooks
java >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.1.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:53
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:64
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:21
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:22
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:23
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:30
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:31
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:38
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:39
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:50
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:51
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:61
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:62
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:72
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:73
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:80
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:81
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:98
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:99
FC019: Access node attributes in a consistent manner: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:53
FC019: Access node attributes in a consistent manner: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:64
0.1.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:64
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:21
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:22
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:23
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:30
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:31
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:38
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:39
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:50
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:51
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:61
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:62
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:72
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:73
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:80
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:81
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:98
FC002: Avoid string interpolation where not required: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:99
FC019: Access node attributes in a consistent manner: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:53
FC019: Access node attributes in a consistent manner: /tmp/cook/396377e70977b0e4e8ded340/apache-newrelic-plugin/recipes/default.rb:64