Skip to content

Commit

Permalink
Use new rails-performance system stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 25, 2024
1 parent d366c54 commit 8439bef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ gem "omniauth_openid_connect", "~> 0.8.0"
gem "sidekiq-cron", "~> 2.0"

group :development, :production do
gem "sys-cpu", "~> 1.1"
gem "get_process_mem", "~> 1.0"
gem "rails_performance", "~> 1.4"
gem "redis-namespace"
end

gem "pghero", "~> 3.6"
gem "pg_query", "~> 5.1"

gem "get_process_mem", "~> 1.0"
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,8 @@ GEM
attr_required (>= 0.0.5)
faraday (~> 2.0)
faraday-follow_redirects
sys-cpu (1.1.0)
ffi (~> 1.1)
sys-filesystem (1.5.3)
ffi (~> 1.1)
terminal-table (3.0.2)
Expand Down Expand Up @@ -826,6 +828,7 @@ DEPENDENCIES
standard (~> 1.42.1)
stopwords-filter2
string-similarity (~> 2.1)
sys-cpu (~> 1.1)
sys-filesystem (~> 1.5)
translation (~> 1.41)
tzinfo-data
Expand Down
8 changes: 2 additions & 6 deletions config/initializers/rails_performance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@
# config.slow_requests_threshold = 500 # number of ms

# store custom data for the request
config.custom_data_proc = proc do |env|
{
pid: Process.pid,
memory_usage: GetProcessMem.new.bytes
}
end
# config.custom_data_proc = proc do |env|
# end

# config home button link
config.home_link = "/"
Expand Down

0 comments on commit 8439bef

Please sign in to comment.