Skip to content

Commit

Permalink
Setup new relic monitor (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoblin authored Oct 10, 2023
1 parent e370dde commit e6230fe
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ gem "data_migrate", "~> 9.2"
gem "devise", "~> 4.9"
gem "draper", "~> 4.0"
gem "groupdate", "~> 6.4"
gem "newrelic_rpm", "~> 9.5"
gem "pry", "~> 0.14.2"
gem "slim", "~> 5.1"
gem "sqlite3", "~> 1.6"
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ GEM
timeout
net-smtp (0.4.0)
net-protocol
newrelic_rpm (9.5.0)
nio4r (2.5.9)
nokogiri (1.15.4)
mini_portile2 (~> 2.8.2)
Expand Down Expand Up @@ -363,6 +364,7 @@ DEPENDENCIES
fuubar (~> 2.5)
groupdate (~> 6.4)
jsbundling-rails
newrelic_rpm (~> 9.5)
ordinare (~> 0.4.0)
pg (~> 1.1)
pry (~> 0.14.2)
Expand Down
2 changes: 1 addition & 1 deletion config/credentials/development.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
zV9KXtcWS0Xn68LTNO5MSHGeSp6lCTGFf3ld+gvkmcpsq3UQQzYnFNxs3yU2DWApiEbKvWEwami9IOjxWUyu0oCuPzjqCK3U83qDu0eA5wVED/k4cbu7RqFrCJ8P91YzrDq42BH8Ho+oCmkj7wMEWpOOpOW/HYy6WdkZi7BliMKi6JhGw6fNFr5f8wku0SGyEshtUaXOAg7vQa5ZLLO61yK9LrHQw1bTZqIF4JQ6iuyu2Q04sRB3VC+jPr8gxkCdFpxP4BIHyIVEWDijOAgtRcUqgDulnp19xnXohQ/Igxfz87X8DJs/FIVwn9TYGUt/gI88ouEBka37hc9mFyEI4zcRClw5XBpYri4fV8hgfktd20tknhFtsZCsa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b0--P+2xISu+Nil1A1evylGLdA==
2 changes: 1 addition & 1 deletion config/credentials/production.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/89rszTchQPQ0kMBEg8gOKOO8a0p+UudWdV3BXLSCxFYESpyvcq3xzcKmb5VG2vBGnblr93MTgoyGzwClpxvjvXbj2JxXL0EOCkKvO8akuEBqQiFYS420vgluskf9ocryJPse6z5HJdBSzNZRrpQD0FqT0TDx/80kb3urTaNuwIiu1BVcQNhG/ryXvnoDnsozzmf1B5toj5pZKO9bntqoHrVxQKkNGQXfKIcO2uyOMecKpAYcQn6fBMp3qUPgbFg107yVXz0QuvJbx66YZ+Af+Mwtp4nf5WFYpDp69NtiKoP1B3vm69Exk3MgtQEnQYl9UIsPdgnx9C3atlm6G58Y9Oqb38lWfvHzxMaaTPUK6qJLVnOexaaB+FD5yYUW7fZm22U7fV7UdVmVrVC7z4v8/l043MZTziNSwYmabm40vQ5GwWVwK+lZbcqrqwP028uIy0y1cUt1dvxcGQBxhrJX6h98uX2TRS6vG41qtHcE86h5GL3iFcCAVnlx4P5DH9KxxwQDOca97nlh6uLGR/Jcy5EX8+IJGjf4invl1pnN8bZryz5cq2fQ/ng63v06Jl8kHvzd3dqE+e4+xQCWMe5KbpJCrDknON5fxw3DtcEy++hgGP+TzUBEbj6rDV/kwQREZwP36cGqIT/gyKFnfIQ3EwDjs3ApP97hLcqDyGNjGY63T/Ik1PSa5/A55AnKg==--E3JGqyGIGWwGua4V--Dz/jaMdGQdCpEf4LKWdLaw==
iYVA4CFpmpVMsz+gPCtwfHx/Wc36aMc3pYctbQPz7Tu9ipoffWJX5INAMAlRFQUcMmKUACdoxFyKoqZfoxqOLM1oip2cTWNim479KIUlZ+Nsnybp9QA1Szzy2+rWoWwfv/628kOB1dIpnWkS96PJyGLBa7pUlonyQjzv3+VnLZxbWhhsqn8L9xHNdYOrIvXKqkaOoaawm6x3XDeiGPQho6Xw2nStrCVjBr6xA/E2p1aYLevYxlb194Xx153GSxt6Md55tIVmOSnEuCHqvgmn47mQMMa/p1i/p4RG7W6uRd8n4QzN48cRmPIv6F0hm5CSCcbMB1J/wlJ7iwSc5pQyapfTtxKYggaBrhbmUQj80LLDiiqCtlsjycbNxz4Mt9GQ64gNUNvlfmqUYsm4gQCv4bvOX9v5cyCCWZvJ/W5WbXvIRN2qGC++cPOepqkynD+DNSxRRWXpAmviSx+7Ej6OCNv520lL0D4tR+DeuDmZYUDpMNLHsE1rN2ghJErBaAaUeOxMVFoweY1r4uZ5uL52tO32oohMlFnfv1LFW1vqswBkHz1iGscsOqxyRlj/PSUvE2sH9wf0ogh/AU8py96R1Wls2T47RaPYLOqDe9zQuS8vECvQE+k1vdSZieS9S/YwtfKt0NP5S8iCP9pG4XIMX9P8ghQsT39EIykKmf/lDe2ef5J0fNkCH8dwT4BAP8zLo1KVkDkrZWDgDPrA9WQFZM/0bnmqDLWO31BJpQyHpuYKmRFjdpDf4M0o4xu99Ljhwa8HPGFtS30mbg==--uXwd6Uxc1ela57+O--nbPfFVWh+p75YwZQKrT2XQ==
2 changes: 1 addition & 1 deletion config/credentials/test.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
iqunnjxyf91QhBwxRiKyL/CkK1QdTq0w7jp0x0NcltUe0JDwt+kSwiGm1a4PTLaF/MCttEmzJpHr6xpvKnmhzI2WrO3VQOrUmeYQDGA+cTF/d/wsgwL/w5oE0Mbje5iaFU6NfBPVQZB7GoESw5+4YPK03kVc38GIPsUDteuPYmZeKZ0QHl3stL5+RgFm6DyktMppancluqOZoBD5MhmgutJdoaxtIQA/L7GYR0hgfrt+q9mFO4oHEVYhoLeuMaYlrp0J6YtLlRq7ndxctNNCwT0B3/P7oIR/GyM1e0IHmqwnArmfTJ8A5UMVDVyp+5v6uI4b6o1Hpy+D9vuNDhkCufEbpb3O5Ko8tKHTBbWFIIXKfJZkNRgQ4r1gLGmcD6RF3fJimD75DS7EP1wj+B7oLkY1XTtRNEj35zpRCXwPGQt9NQJ5ANKykMSqomHgiLAtKpcWxpe/OXKzypAOiBe1jO6/132vBQAkHUF0gEnMPCIo9fW8gFYhJSA9sHAV6OxMGgpscX3TTiLzuWvOKuEP3zcjJrmRFnI807NoER0BBL7SaR/D9keiND+mmEi/cConky8mWgh7SYZUCXADbdFZvwbgvE6ilGuXlr8UP/6VjDT5SlCuRCNOtpWYHC4KlzTpxhKeBLDn7BDwJrEWkgA=--/nSstG5Qq7QD6o6K--Pnuo2dPPstRVc2GHyZWVXw==
P+XJ56FKseKF6GWxNRJ9YCJeOfd451qhLfLf+cYvZ7zB6p8VFMSFi7oZm2UL9uJEy0OTdGqVPDOWrwVe1ysTqI71JRA9rcmqiBnZ+AtJX56tMCaAFdqQRV+3s9ljTfLwglwEQyvQe/WhBu5lLM9LurQC8orgf9XbAYINreHEXFaOCCu408Zrkm3t3V62cJBy5oW890l4dJEZ+DrAD/O4AzY7e0A6F51jZ/EzjP9FXfBC4Cf/sg/d7xoeVVvjFo3x4pHesPFqb+/GWT6enfuKg+VyutgG9f70HwB1pm3nus4CPahVnrzGKzuhnnF2FwvEBOQXsLKke0WrQMVrb8r7Pf3124EJ9lX3CHX4pHW6AGb1vMBAabcGbjrKEXeF++jzr/jGDmyzJn70EILNS+nenCnpwaOtCSLIuZx3sMsJqEVIcOnGNTnNQ1MeUEDw8dxyttp75U2pLLwTOMDkv+4+ui9P4uPJJ5D5j0UOHBwMIo0zQPUFs10ODOn//8hDoZ7o2qSPco4ITjwVFqH9fG8eLEj98v/ByU1AKTNnSxLviMN6syYvlJLWh7OOAx/ViWrKSf91TPD9qNOtElCo4xUECpDxLRzGu0/oHwZTo0i8aHXbnvC7/nV/unPN4HDy+0ppEyh4vLkIgq4QRd2MAm5oI+uUwlK4iNETZ8pFV5wtv1qQZQKR2lpMYEPL815x3j+/mU6/yh3GhADa42TszX46rrXIhhjKayZzqbA=--tS/QG1+5Ywd547B2--s0fW0idRdu/EMKeYa8YwbA==
66 changes: 66 additions & 0 deletions config/newrelic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# This file configures the New Relic Agent. New Relic monitors Ruby, Java,
# .NET, PHP, Python, Node, and Go applications with deep visibility and low
# overhead. For more information, visit www.newrelic.com.
#
# Generated October 28, 2022
#
# This configuration file is custom generated for NewRelic Administration
#
# For full documentation of agent configuration options, please refer to
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration

common: &default_settings
# Required license key associated with your New Relic account.
license_key: 'eu01xx9141f4cdac9de2b06c1821dfd8FFFFNRAL'

# Your application name. Renaming here affects where data displays in New
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
app_name: 'XTracker'

distributed_tracing:
enabled: true

# To disable the agent regardless of other settings, uncomment the following:

# agent_enabled: false

# Logging level for log/newrelic_agent.log
log_level: info

application_logging:
# If `true`, all logging-related features for the agent can be enabled or disabled
# independently. If `false`, all logging-related features are disabled.
enabled: true
forwarding:
# If `true`, the agent captures log records emitted by this application.
enabled: true
# Defines the maximum number of log records to buffer in memory at a time.
max_samples_stored: 10000
metrics:
# If `true`, the agent captures metrics related to logging for this application.
enabled: true
local_decorating:
# If `true`, the agent decorates logs with metadata to link to entities, hosts, traces, and spans.
# This requires a log forwarder to send your log files to New Relic.
# This should not be used when forwarding is enabled.
enabled: false

# Environment-specific settings are in this section.
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
# If your application has other named environments, configure them here.
development:
<<: *default_settings
app_name: 'XTracker (Development)'

test:
<<: *default_settings
# It doesn't make sense to report to New Relic from automated test runs.
monitor_mode: false

staging:
<<: *default_settings
app_name: 'XTracker (Staging)'

production:
<<: *default_settings

0 comments on commit e6230fe

Please sign in to comment.