From cddbad9694299fdc87675c87e1321be470104fc3 Mon Sep 17 00:00:00 2001 From: Matt Barnett Date: Thu, 7 Dec 2017 16:04:43 -0700 Subject: [PATCH] Basic skylight setup --- .env_deployment_sample | 2 +- Gemfile | 3 +++ Gemfile.lock | 3 +++ config/application.rb | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.env_deployment_sample b/.env_deployment_sample index e92115c04..697d5098b 100644 --- a/.env_deployment_sample +++ b/.env_deployment_sample @@ -12,4 +12,4 @@ MYSQL_DATABASE=jupiter_uat MYSQL_ROOT_PASSWORD=mysecretpassword #Nginx environment variables HOSTNAME=localhost - +SKYLIGHT_AUTHENTICATION=secretauthenticationtoken diff --git a/Gemfile b/Gemfile index 41800a197..bc97e7abc 100644 --- a/Gemfile +++ b/Gemfile @@ -49,6 +49,9 @@ gem 'sinatra' # used by sidekiq/web gem 'kaminari' gem 'ransack' +# Performance monitoring +gem 'skylight' + # Seeds group :development, :test, :uat do gem 'faker', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 4fedf26d4..43c052894 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -355,6 +355,8 @@ GEM rack (~> 2.0) rack-protection (= 2.0.0) tilt (~> 2.0) + skylight (1.4.4) + activesupport (>= 3.0.0) slop (4.6.0) sprockets (3.7.1) concurrent-ruby (~> 1.0) @@ -431,6 +433,7 @@ DEPENDENCIES simple_form simplecov sinatra + skylight solrizer! turbolinks (~> 5) uglifier (>= 1.3.0) diff --git a/config/application.rb b/config/application.rb index 0e2b6af5f..1deeb5a85 100644 --- a/config/application.rb +++ b/config/application.rb @@ -30,5 +30,8 @@ class Application < Rails::Application # Set ActiveJob adapter config.active_job.queue_adapter = :sidekiq + # Run skylight in UAT for performance metric monitoring pre-launch + config.skylight.environments += ['uat'] + end end