-
Notifications
You must be signed in to change notification settings - Fork 247
/
Copy pathagent_php.rb
71 lines (65 loc) · 4.13 KB
/
agent_php.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Cookbook:: newrelic
# Resource:: agent_php
#
# Copyright:: (c) 2016, David Joos
#
actions :install, :remove
default_action :install
attribute :license, kind_of: String, default: lazy { NewRelic.application_monitoring_license(node) }
attribute :version, kind_of: String, default: nil
attribute :config_file, kind_of: String, default: nil
attribute :startup_mode, kind_of: String, default: 'agent'
attribute :app_name, kind_of: String, default: nil
attribute :high_security, kind_of: [TrueClass, FalseClass], default: false
attribute :install_silently, kind_of: [TrueClass, FalseClass], default: false
attribute :config_file_to_be_deleted, kind_of: String, default: nil
attribute :service_name, kind_of: String, default: nil
attribute :service_action, kind_of: String, default: 'restart'
# @todo take out deprecated execute_php5enmod logic: use enable_module instead
attribute :execute_php5enmod, kind_of: [TrueClass, FalseClass], default: false
attribute :repository, kind_of: String, default: 'https://download.newrelic.com/php_agent/archive'
attribute :enable_module, kind_of: [TrueClass, FalseClass], default: false
attribute :cookbook_ini, kind_of: String, default: 'newrelic'
attribute :source_ini, kind_of: String, default: 'agent/php/newrelic.ini.erb'
attribute :cookbook, kind_of: String, default: 'newrelic'
attribute :source, kind_of: String, default: 'agent/php/newrelic.cfg.erb'
attribute :enabled, kind_of: [TrueClass, FalseClass], default: true
attribute :logfile, kind_of: String, default: nil
attribute :loglevel, kind_of: String, default: nil
attribute :daemon_logfile, kind_of: String, default: '/var/log/newrelic/newrelic-daemon.log'
attribute :daemon_loglevel, kind_of: String, default: nil
attribute :daemon_port, kind_of: String, default: nil
attribute :daemon_max_threads, kind_of: String, default: nil
attribute :daemon_ssl, kind_of: [TrueClass, FalseClass], default: true
attribute :daemon_ssl_ca_path, kind_of: String, default: nil
attribute :daemon_ssl_ca_bundle, kind_of: String, default: nil
attribute :daemon_proxy, kind_of: String, default: nil
attribute :daemon_pidfile, kind_of: String, default: nil
attribute :daemon_location, kind_of: String, default: nil
attribute :daemon_collector_host, kind_of: String, default: nil
attribute :daemon_dont_launch, kind_of: String, default: nil
attribute :distributed_tracing_enabled, kind_of: [TrueClass, FalseClass], default: false
attribute :distributed_tracing_exclude_newrelic_header, kind_of: [TrueClass, FalseClass], default: false
attribute :capture_params, kind_of: [TrueClass, FalseClass], default: false
attribute :ignored_params, kind_of: String, default: nil
attribute :error_collector_enable, kind_of: [TrueClass, FalseClass], default: true
attribute :error_collector_record_database_errors, kind_of: [TrueClass, FalseClass], default: true
attribute :error_collector_prioritize_api_errors, kind_of: [TrueClass, FalseClass], default: false
attribute :error_collector_ignore_errors, kind_of: String, default: nil
attribute :error_collector_ignore_classes, kind_of: Array, default: nil
attribute :browser_monitoring_auto_instrument, kind_of: [TrueClass, FalseClass], default: true
attribute :transaction_tracer_enable, kind_of: [TrueClass, FalseClass], default: true
attribute :transaction_tracer_threshold, kind_of: String, default: nil
attribute :transaction_tracer_detail, kind_of: String, default: nil
attribute :transaction_tracer_slow_sql, kind_of: [TrueClass, FalseClass], default: true
attribute :transaction_tracer_stack_trace_threshold, kind_of: String, default: nil
attribute :transaction_tracer_explain_threshold, kind_of: String, default: nil
attribute :transaction_tracer_record_sql, kind_of: String, default: nil
attribute :transaction_tracer_custom, kind_of: String, default: nil
attribute :framework, kind_of: String, default: nil
attribute :webtransaction_name_remove_trailing_path, kind_of: [TrueClass, FalseClass], default: false
attribute :webtransaction_name_functions, kind_of: String, default: nil
attribute :webtransaction_name_files, kind_of: String, default: nil
attribute :cross_application_tracer_enable, kind_of: [TrueClass, FalseClass], default: true
attribute :additional_config, kind_of: Hash, default: {}