opener-daemons 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/newrelic.yml +206 -0
- data/lib/opener/daemons/version.rb +1 -1
- data/opener-daemons.gemspec +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8541a83a5ab552b4bd656f4622d7f325072778b8
|
4
|
+
data.tar.gz: 93fc204fba7c1f4c9dcf2c80e7c9697bf87529b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7afbad52756a4e51e17e2f31c5e79d4288e8498632d0f844fbf7d0d9a7b084e515083754652974633a17a681d88d4a19ea5a9f098b3dfe479d8117b04c34fe1
|
7
|
+
data.tar.gz: 4974100fc4211e97fa4f4cd53c8a2718097c481f7b8e0b2277e716b184f56add575e02e918874257f5a76514085415d1048d32bb9049472c1bfa7c321032e8f4
|
data/config/newrelic.yml
ADDED
@@ -0,0 +1,206 @@
|
|
1
|
+
# Here are the settings that are common to all environments
|
2
|
+
common: &default_settings
|
3
|
+
# ============================== LICENSE KEY ===============================
|
4
|
+
|
5
|
+
# You must specify the license key associated with your New Relic
|
6
|
+
# account. This key binds your Agent's data to your account in the
|
7
|
+
# New Relic service.
|
8
|
+
license_key: <%= ENV['NEWRELIC_TOKEN'] %>
|
9
|
+
|
10
|
+
# Agent Enabled (Ruby/Rails Only)
|
11
|
+
# Use this setting to force the agent to run or not run.
|
12
|
+
# Default is 'auto' which means the agent will install and run only
|
13
|
+
# if a valid dispatcher such as Mongrel is running. This prevents
|
14
|
+
# it from running with Rake or the console. Set to false to
|
15
|
+
# completely turn the agent off regardless of the other settings.
|
16
|
+
# Valid values are true, false and auto.
|
17
|
+
#
|
18
|
+
agent_enabled: true
|
19
|
+
|
20
|
+
# Application Name Set this to be the name of your application as
|
21
|
+
# you'd like it show up in New Relic. The service will then auto-map
|
22
|
+
# instances of your application into an "application" on your
|
23
|
+
# dashboard page. If you want to map this instance into multiple
|
24
|
+
# apps, like "AJAX Requests" and "All UI" then specify a semicolon
|
25
|
+
# separated list of up to three distinct names, or a yaml list.
|
26
|
+
# Defaults to the capitalized RAILS_ENV or RACK_ENV (i.e.,
|
27
|
+
# Production, Staging, etc)
|
28
|
+
#
|
29
|
+
# Example:
|
30
|
+
#
|
31
|
+
# app_name:
|
32
|
+
# - Ajax Service
|
33
|
+
# - All Services
|
34
|
+
#
|
35
|
+
app_name: "<%= ENV['APP_NAME'] %>"
|
36
|
+
|
37
|
+
# When "true", the agent collects performance data about your
|
38
|
+
# application and reports this data to the New Relic service at
|
39
|
+
# newrelic.com. This global switch is normally overridden for each
|
40
|
+
# environment below. (formerly called 'enabled')
|
41
|
+
# monitor_mode: true
|
42
|
+
|
43
|
+
# Developer mode should be off in every environment but
|
44
|
+
# development as it has very high overhead in memory.
|
45
|
+
developer_mode: false
|
46
|
+
|
47
|
+
# The newrelic agent generates its own log file to keep its logging
|
48
|
+
# information separate from that of your application. Specify its
|
49
|
+
# log level here.
|
50
|
+
log_level: error
|
51
|
+
|
52
|
+
# Optionally set the path to the log file This is expanded from the
|
53
|
+
# root directory (may be relative or absolute, e.g. 'log/' or
|
54
|
+
# '/var/log/') The agent will attempt to create this directory if it
|
55
|
+
# does not exist.
|
56
|
+
log_file_path: STDOUT
|
57
|
+
|
58
|
+
# Optionally set the name of the log file, defaults to 'newrelic_agent.log'
|
59
|
+
#log_file_name: 'newrelic_agent.log'
|
60
|
+
|
61
|
+
# The newrelic agent communicates with the service via https by default. This
|
62
|
+
# prevents eavesdropping on the performance metrics transmitted by the agent.
|
63
|
+
# The encryption required by SSL introduces a nominal amount of CPU overhead,
|
64
|
+
# which is performed asynchronously in a background thread. If you'd prefer
|
65
|
+
# to send your metrics over http uncomment the following line.
|
66
|
+
ssl: true
|
67
|
+
|
68
|
+
#============================== Browser Monitoring ===============================
|
69
|
+
# New Relic Real User Monitoring gives you insight into the performance real users are
|
70
|
+
# experiencing with your website. This is accomplished by measuring the time it takes for
|
71
|
+
# your users' browsers to download and render your web pages by injecting a small amount
|
72
|
+
# of JavaScript code into the header and footer of each page.
|
73
|
+
browser_monitoring:
|
74
|
+
# By default the agent automatically injects the monitoring JavaScript
|
75
|
+
# into web pages. Set this attribute to false to turn off this behavior.
|
76
|
+
auto_instrument: false
|
77
|
+
|
78
|
+
# Proxy settings for connecting to the New Relic server.
|
79
|
+
#
|
80
|
+
# If a proxy is used, the host setting is required. Other settings
|
81
|
+
# are optional. Default port is 8080.
|
82
|
+
#
|
83
|
+
# proxy_host: hostname
|
84
|
+
# proxy_port: 8080
|
85
|
+
# proxy_user:
|
86
|
+
# proxy_pass:
|
87
|
+
|
88
|
+
# The agent can optionally log all data it sends to New Relic servers to a
|
89
|
+
# separate log file for human inspection and auditing purposes. To enable this
|
90
|
+
# feature, change 'enabled' below to true.
|
91
|
+
# See: https://newrelic.com/docs/ruby/audit-log
|
92
|
+
audit_log:
|
93
|
+
enabled: false
|
94
|
+
|
95
|
+
# Tells transaction tracer and error collector (when enabled)
|
96
|
+
# whether or not to capture HTTP params. When true, frameworks can
|
97
|
+
# exclude HTTP parameters from being captured.
|
98
|
+
# Rails: the RoR filter_parameter_logging excludes parameters
|
99
|
+
# Java: create a config setting called "ignored_params" and set it to
|
100
|
+
# a comma separated list of HTTP parameter names.
|
101
|
+
# ex: ignored_params: credit_card, ssn, password
|
102
|
+
capture_params: false
|
103
|
+
|
104
|
+
# Transaction tracer captures deep information about slow
|
105
|
+
# transactions and sends this to the New Relic service once a
|
106
|
+
# minute. Included in the transaction is the exact call sequence of
|
107
|
+
# the transactions including any SQL statements issued.
|
108
|
+
transaction_tracer:
|
109
|
+
|
110
|
+
# Transaction tracer is enabled by default. Set this to false to
|
111
|
+
# turn it off. This feature is only available at the Professional
|
112
|
+
# and above product levels.
|
113
|
+
enabled: true
|
114
|
+
|
115
|
+
# Threshold in seconds for when to collect a transaction
|
116
|
+
# trace. When the response time of a controller action exceeds
|
117
|
+
# this threshold, a transaction trace will be recorded and sent to
|
118
|
+
# New Relic. Valid values are any float value, or (default) "apdex_f",
|
119
|
+
# which will use the threshold for an dissatisfying Apdex
|
120
|
+
# controller action - four times the Apdex T value.
|
121
|
+
transaction_threshold: 0
|
122
|
+
|
123
|
+
# When transaction tracer is on, SQL statements can optionally be
|
124
|
+
# recorded. The recorder has three modes, "off" which sends no
|
125
|
+
# SQL, "raw" which sends the SQL statement in its original form,
|
126
|
+
# and "obfuscated", which strips out numeric and string literals.
|
127
|
+
record_sql: obfuscated
|
128
|
+
|
129
|
+
# Threshold in seconds for when to collect stack trace for a SQL
|
130
|
+
# call. In other words, when SQL statements exceed this threshold,
|
131
|
+
# then capture and send to New Relic the current stack trace. This is
|
132
|
+
# helpful for pinpointing where long SQL calls originate from.
|
133
|
+
stack_trace_threshold: 0.500
|
134
|
+
|
135
|
+
# Determines whether the agent will capture query plans for slow
|
136
|
+
# SQL queries. Only supported in mysql and postgres. Should be
|
137
|
+
# set to false when using other adapters.
|
138
|
+
# explain_enabled: true
|
139
|
+
|
140
|
+
# Threshold for query execution time below which query plans will
|
141
|
+
# not be captured. Relevant only when `explain_enabled` is true.
|
142
|
+
# explain_threshold: 0.5
|
143
|
+
|
144
|
+
# Error collector captures information about uncaught exceptions and
|
145
|
+
# sends them to New Relic for viewing
|
146
|
+
error_collector:
|
147
|
+
|
148
|
+
# Error collector is enabled by default. Set this to false to turn
|
149
|
+
# it off. This feature is only available at the Professional and above
|
150
|
+
# product levels.
|
151
|
+
enabled: false
|
152
|
+
|
153
|
+
# To stop specific errors from reporting to New Relic, set this property
|
154
|
+
# to comma-separated values. Default is to ignore routing errors,
|
155
|
+
# which are how 404's get triggered.
|
156
|
+
ignore_errors: "ActionController::RoutingError,Sinatra::NotFound"
|
157
|
+
|
158
|
+
# If you're interested in capturing memcache keys as though they
|
159
|
+
# were SQL uncomment this flag. Note that this does increase
|
160
|
+
# overhead slightly on every memcached call, and can have security
|
161
|
+
# implications if your memcached keys are sensitive
|
162
|
+
# capture_memcache_keys: true
|
163
|
+
|
164
|
+
# Application Environments
|
165
|
+
# ------------------------------------------
|
166
|
+
# Environment-specific settings are in this section.
|
167
|
+
# For Rails applications, RAILS_ENV is used to determine the environment.
|
168
|
+
# For Java applications, pass -Dnewrelic.environment <environment> to set
|
169
|
+
# the environment.
|
170
|
+
|
171
|
+
# NOTE if your application has other named environments, you should
|
172
|
+
# provide newrelic configuration settings for these environments here.
|
173
|
+
|
174
|
+
development:
|
175
|
+
<<: *default_settings
|
176
|
+
# Turn on communication to New Relic service in development mode
|
177
|
+
monitor_mode: false
|
178
|
+
app_name: "<%= ENV['APP_NAME'] %> (Development)"
|
179
|
+
|
180
|
+
test:
|
181
|
+
<<: *default_settings
|
182
|
+
# It almost never makes sense to turn on the agent when running
|
183
|
+
# unit, functional or integration tests or the like.
|
184
|
+
monitor_mode: false
|
185
|
+
|
186
|
+
# Turn on the agent in production for 24x7 monitoring. NewRelic
|
187
|
+
# testing shows an average performance impact of < 5 ms per
|
188
|
+
# transaction, you can leave this on all the time without
|
189
|
+
# incurring any user-visible performance degradation.
|
190
|
+
production:
|
191
|
+
<<: *default_settings
|
192
|
+
monitor_mode: true
|
193
|
+
|
194
|
+
error_collector:
|
195
|
+
enabled: true
|
196
|
+
|
197
|
+
# Many applications have a staging environment which behaves
|
198
|
+
# identically to production. Support for that environment is provided
|
199
|
+
# here. By default, the staging environment has the agent turned on.
|
200
|
+
staging:
|
201
|
+
<<: *default_settings
|
202
|
+
monitor_mode: true
|
203
|
+
app_name: "<%= ENV['APP_NAME'] %> (Staging)"
|
204
|
+
|
205
|
+
error_collector:
|
206
|
+
enabled: true
|
data/opener-daemons.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-daemons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilco van Duinkerken
|
@@ -195,6 +195,7 @@ extra_rdoc_files: []
|
|
195
195
|
files:
|
196
196
|
- LICENSE.txt
|
197
197
|
- README.md
|
198
|
+
- config/newrelic.yml
|
198
199
|
- lib/opener/daemons.rb
|
199
200
|
- lib/opener/daemons/configuration.rb
|
200
201
|
- lib/opener/daemons/controller.rb
|