Skip to content

Commit 48d459e

Browse files
author
Udalov Igor
committed
Install new relic
1 parent 08eeca0 commit 48d459e

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,5 @@ group :test do
157157
gem "zonebie", "~> 0.6.1"
158158
end
159159
# rubocop:enable LineLength
160+
161+
gem 'newrelic_rpm'

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ GEM
137137
descendants_tracker (~> 0.0.4)
138138
ice_nine (~> 0.11.0)
139139
thread_safe (~> 0.3, >= 0.3.1)
140+
base64 (0.1.1)
140141
bcrypt (3.1.12)
141142
benchmark-ips (2.7.2)
142143
better_errors (2.5.0)
@@ -612,6 +613,8 @@ GEM
612613
net-http-persistent (3.0.0)
613614
connection_pool (~> 2.2)
614615
netrc (0.11.0)
616+
newrelic_rpm (9.6.0)
617+
base64
615618
nio4r (2.3.1)
616619
nokogiri (1.10.1)
617620
mini_portile2 (~> 2.4.0)
@@ -1013,6 +1016,7 @@ DEPENDENCIES
10131016
liquid (~> 4.0)
10141017
memory_profiler (~> 0.9)
10151018
nakayoshi_fork
1019+
newrelic_rpm
10161020
nokogiri (~> 1.10)
10171021
octokit (~> 4.13)
10181022
omniauth (~> 1.9)

config/new_relic.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#
2+
# This file configures the New Relic Agent. New Relic monitors Ruby, Java,
3+
# .NET, PHP, Python, Node, and Go applications with deep visibility and low
4+
# overhead. For more information, visit www.newrelic.com.
5+
#
6+
# Generated October 28, 2022
7+
#
8+
# This configuration file is custom generated for NewRelic Administration
9+
#
10+
# For full documentation of agent configuration options, please refer to
11+
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration
12+
13+
common: &default_settings
14+
# Required license key associated with your New Relic account.
15+
license_key: 'eu01xx611fa6a8b0bd80a0b6a4671ab0FFFFNRAL'
16+
17+
# Your application name. Renaming here affects where data displays in New
18+
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
19+
app_name: 'dev.to'
20+
21+
distributed_tracing:
22+
enabled: true
23+
24+
# To disable the agent regardless of other settings, uncomment the following:
25+
26+
# agent_enabled: false
27+
28+
# Logging level for log/newrelic_agent.log
29+
log_level: info
30+
31+
application_logging:
32+
# If `true`, all logging-related features for the agent can be enabled or disabled
33+
# independently. If `false`, all logging-related features are disabled.
34+
enabled: true
35+
forwarding:
36+
# If `true`, the agent captures log records emitted by this application.
37+
enabled: true
38+
# Defines the maximum number of log records to buffer in memory at a time.
39+
max_samples_stored: 10000
40+
metrics:
41+
# If `true`, the agent captures metrics related to logging for this application.
42+
enabled: true
43+
local_decorating:
44+
# If `true`, the agent decorates logs with metadata to link to entities, hosts, traces, and spans.
45+
# This requires a log forwarder to send your log files to New Relic.
46+
# This should not be used when forwarding is enabled.
47+
enabled: false
48+
49+
# Environment-specific settings are in this section.
50+
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
51+
# If your application has other named environments, configure them here.
52+
development:
53+
<<: *default_settings
54+
app_name: 'dev.to (Development)'
55+
56+
test:
57+
<<: *default_settings
58+
# It doesn't make sense to report to New Relic from automated test runs.
59+
monitor_mode: false
60+
61+
staging:
62+
<<: *default_settings
63+
app_name: 'dev.to (Staging)'
64+
65+
production:
66+
<<: *default_settings

0 commit comments

Comments
 (0)