!!! This project has been deprecated. We recommend you search the Chef Supermarket for a supported alternative !!!*
- Chef 10.x
- Chef 11.x
Platform:
- CentOS 6.x
- RHEL 6.x
Add recipe[new_relic::server_monitor]
to your run list.
Ensure recipe[new_relic]
is in run_list.
node['new_relic']['license_key']
- Default value: 'change_me'
node['new_relic']['proxy']['enabled']
- Default value: false
node['new_relic']['proxy']['host']
- Default value: nil
node['new_relic']['proxy']['port']
- Default value: nil
node['new_relic']['proxy']['user']
- Default value: nil
node['new_relic']['proxy']['password']
- Default value: nil
node['new_relic']['proxy']['scheme']
- Default value: 'http'
node['new_relic']['app_agent']['apdex_t']
- Default value: '0.5'
node['new_relic']['app_agent']['app_name']
- Default value: 'change_me'
node['new_relic']['app_agent']['capture_params']
- Default value: false
node['new_relic']['app_agent']['developer_mode']
- Default value: false
node['new_relic']['app_agent']['config_file']
- Default value: 'change_me'
node['new_relic']['app_agent']['log_daily']
- Default value: false
node['new_relic']['app_agent']['log_file_count']
- Default value: 1
node['new_relic']['app_agent']['log_file_dir']
- Default value: '/var/log/newrelic'
node['new_relic']['app_agent']['log_level']
- Default value: 'info'
node['new_relic']['app_agent']['monitor_mode']
Default value: true
node['new_relic']['app_agent']['ssl']
Default value: true
node['new_relic']['app_agent']['brower_auto_instrument']
Default value: true
node['new_relic']['server_monitor']['config_file']
- config file location, default value: '/etc/newrelic/nrsysmond.cfg'
node['new_relic']['server_monitor']['log_file']
- log file location, default value: '/var/log/newrelic/nrsysmond.log'
node['new_relic']['server_monitor']['package_name']
- Name of the RPM, default value: 'newrelic-sysmond'
node['new_relic']['server_monitor']['pid_file']
- Default value: '/var/run/newrelic/nrsysmond.pid'
node['new_relic']['server_monitor']['service_name']
- Default value: 'newrelic-sysmond'
node['new_relic']['server_monitor']['ssl']
- Default value: true
node['new_relic']['server_monitor']['version']
- Version of the rpm that is installed, default value: latest version
Installs and configures the new_relic server monitor agent. This assumes that the server monitor package is available through your own yum repository.
Configures the new_relic app agent. It is expected that you have bundled the agent with your app.
- default action:
:create
:create
adds your New Relic YAML config to path specified byfull_path
- Chef::Provider::NewRelicRubyAppAgentConfig
- Chef::Provider::NewRelicJavaAppAgentConfig
node['new_relic']['app_agent']
(please review app_agent attributes section above)
node['new_relic']['license_key']
node['new_relic']['proxy']
(please review proxy attributes section above)
full_path
- specifies the absolute path to the new relic config file, default value: name of the resourcecookbook
- specifies which cookbook to get template file from. default isnew_relic
new_relic_app_agent_config "/my_app_root/config/newrelic.yml" do
provider Chef::Provider::NewRelicRubyAppAgentConfig
end
Creates a new deployment marker in new relic executing new relic jar via "java -jar command_path deployment" with provided options.
:create
adds a deployment marker for your app name specified byname
app_name
- the name of your applicationcommand_path
- absolute path and filename of deployment marker jar. (required)environment
- environment in New Relic that node belongs toproxy
- use proxy to execute deployment marker call. The default is false.proxy_host
- proxy host name or ipproxy_port
- proxy portrevision
- revision id of deployment markeruser
- user executing the deployment marker call. This attribute looks to see if there is a SUDO_USER environment variable. If not, it looks to see if there is a USER environment variable. If not, it will use 'root'.
new_relic_java_deployment_record "app_name" do
action :create
app_name "value to pass as --appname"
command_path "path to newrelic jar"
environment "value to pass as --environment"
proxy true
proxy_host myhost.example.com
proxy_port 8080
revision "value to pass to --revision"
user "value to pass as --user"
end
Creates a new deployment marker in new relic by executing bundle exec newrelic deployment
with provided options. NOTE: this currently does not support working through a proxy
:create
adds a deployment marker for your application
app_name
- the name of your applicationcwd
- the directory to change toenvironment
- environment in New Relic that node belongs torevision
- revision id of deployment markeruser
- user executing the deployment marker call. This attribute looks to see if there is a SUDO_USER environment variable. If not, it looks to see if there is a USER environment variable. If not, it will use 'root'.
new_relic_ruby_deployment_record "app_name" do
action :create
app_name "value to pass as --appname"
cwd "directory to change to before executing command"
environment "value to pass as --environment"
revision "value to pass to --revision"
user "value to pass as --user"
end
- Author:: Kevin Young ([email protected])
- Copyright:: 2013, Intuit, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.