-
Notifications
You must be signed in to change notification settings - Fork 247
/
agent_java.rb
63 lines (61 loc) · 3.76 KB
/
agent_java.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
#
# Cookbook:: newrelic
# Resource:: agent_java
#
# 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: 'latest'
attribute :install_dir, kind_of: String, default: '/opt/newrelic/java'
attribute :repository, kind_of: String, default: 'https://download.newrelic.com/newrelic/java-agent/newrelic-agent'
attribute :agent_action, kind_of: String, default: 'install'
attribute :execute_agent_action, kind_of: [TrueClass, FalseClass], default: true
attribute :app_location, kind_of: String, default: nil
attribute :app_user, kind_of: String, default: 'newrelic'
attribute :app_group, kind_of: String, default: 'newrelic'
attribute :agent_type, kind_of: String, default: 'java'
attribute :template_cookbook, kind_of: String, default: 'newrelic'
attribute :template_source, kind_of: String, default: 'agent/newrelic.yml.erb'
attribute :enabled, kind_of: [TrueClass, FalseClass], default: true
attribute :app_name, kind_of: String, default: nil
attribute :high_security, kind_of: [TrueClass, FalseClass], default: false
attribute :logfile, kind_of: String, default: nil
attribute :logfile_path, 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 :audit_mode, kind_of: [TrueClass, FalseClass], default: false
attribute :log_file_count, kind_of: Integer, default: nil
attribute :log_limit_in_kbytes, kind_of: Integer, default: nil
attribute :log_daily, kind_of: [TrueClass, FalseClass], default: false
attribute :daemon_ssl, kind_of: [TrueClass, FalseClass], default: true
attribute :daemon_proxy, kind_of: String, default: nil
attribute :daemon_proxy_host, kind_of: String, default: nil
attribute :daemon_proxy_port, kind_of: String, default: nil
attribute :daemon_proxy_user, kind_of: String, default: nil
attribute :daemon_proxy_password, kind_of: String, default: nil
attribute :distributed_tracing_enable, kind_of: [TrueClass, FalseClass], default: false
attribute :capture_params, kind_of: String, default: nil
attribute :ignored_params, kind_of: String, default: nil
attribute :enable_custom_tracing, kind_of: [TrueClass, FalseClass], default: false
attribute :transaction_tracer_enable, kind_of: [TrueClass, FalseClass], default: true
attribute :transaction_tracer_threshold, kind_of: String, default: nil
attribute :transaction_tracer_record_sql, kind_of: String, default: nil
attribute :transaction_tracer_stack_trace_threshold, kind_of: String, default: nil
attribute :transaction_tracer_slow_sql, kind_of: String, default: nil
attribute :transaction_tracer_explain_threshold, kind_of: String, default: nil
attribute :error_collector_enable, kind_of: [TrueClass, FalseClass], default: true
attribute :error_collector_ignore_errors, kind_of: String, default: nil
attribute :error_collector_ignore_classes, kind_of: Array, default: nil
attribute :error_collector_ignore_status_codes, kind_of: String, default: nil
attribute :class_transformer_config, kind_of: Hash, default: {}
attribute :circuitbreaker_enabled, kind_of: [TrueClass, FalseClass], default: true
attribute :circuitbreaker_memory_threshold, kind_of: Integer, default: 20
attribute :circuitbreaker_gc_cpu_threshold, kind_of: Integer, default: 10
attribute :browser_monitoring_auto_instrument, kind_of: String, default: nil
attribute :cross_application_tracer_enable, kind_of: [TrueClass, FalseClass], default: true
attribute :thread_profiler_enable, kind_of: [TrueClass, FalseClass], default: true
attribute :labels, kind_of: String, default: nil
attribute :trim_stats, kind_of: [TrueClass, FalseClass], default: false