Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add monitoring #11

Merged
merged 2 commits into from
Nov 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ gem 'jbuilder', '~> 2.5'
gem 'httparty', '~> 0.16.2'
gem 'figaro', git: 'https://github.com/zaimramlan/figaro.git'
gem 'nokogiri'
gem 'newrelic_rpm'

group :development do
gem 'web-console', '>= 3.3.0'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ GEM
mini_portile2 (2.4.0)
minitest (5.13.0)
multi_xml (0.6.0)
newrelic_rpm (6.7.0.359)
nio4r (2.5.2)
nokogiri (1.10.5)
mini_portile2 (~> 2.4.0)
Expand Down Expand Up @@ -187,6 +188,7 @@ DEPENDENCIES
jbuilder (~> 2.5)
jquery-rails (~> 4.2.2)
listen (~> 3.0.5)
newrelic_rpm
nokogiri
pg (~> 0.19.0)
puma (~> 3.12.1)
Expand Down
1 change: 1 addition & 0 deletions config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ BACKUP_ZONE_URL: ''
BACKUP_PRAYER_TIMES_URL: ''
MAIN_ZONE_URL: ''
MAIN_PRAYER_TIMES_URL: ''
NEW_RELIC_LICENSE_KEY: ''
19 changes: 19 additions & 0 deletions config/newrelic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
common: &default_settings
license_key: <%= ENV['NEW_RELIC_LICENSE_KEY'] %>
app_name: Waktu Solat API
log_level: info

development:
<<: *default_settings
app_name: Waktu Solat API (Development)

test:
<<: *default_settings
monitor_mode: false

staging:
<<: *default_settings
app_name: Waktu Solat API (Staging)

production:
<<: *default_settings