-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature: Add performance monitoring section to the admin page #767
base: development
Are you sure you want to change the base?
Conversation
@@ -35,7 +35,7 @@ gem 'puma', '~> 5.0' | |||
|
|||
# Use JavaScript with ESM import maps | |||
# [https://github.com/rails/importmap-rails] | |||
gem 'importmap-rails' | |||
gem 'importmap-rails', '2.0.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not required
@@ -11,7 +11,7 @@ | |||
|
|||
%div | |||
%div.mx-1 | |||
- sections = [t('admin.index.analytics'), t('admin.index.site_administration'),t('admin.index.ontology_administration'), t('admin.index.licensing'), t('admin.index.users'), t('admin.index.metadata_administration'), t('admin.index.groups'), t('admin.index.categories'), t('admin.index.persons_and_organizations'), t('admin.index.sparql'), t('admin.index.search')] | |||
- sections = [t('admin.index.analytics'), t('admin.index.site_administration'), "Performance Monitoring", t('admin.index.ontology_administration'), t('admin.index.licensing'), t('admin.index.users'), t('admin.index.metadata_administration'), t('admin.index.groups'), t('admin.index.categories'), t('admin.index.persons_and_organizations'), t('admin.index.sparql'), t('admin.index.search')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
localize this in English and French
238077f
to
8b858f2
Compare
@syphax-bouazzouni to be deployed for one or two weeks to see if there's an impact on the response time of the different requests or not |
Deployed to testportal |
Require
Context
This PR is another iteration of this agroportal/project-management#308, we don't use NewRelic as it is not free and too complex, and the same for Bugsnag.
Here we try a more simplistic approach not using another external provide or getting so many details, but just integrating a self-hosted tool to monitor our rails application, using https://github.com/igorkasyanchuk/rails_performance, which the only dependency required is Redis, so requiring also the migration from Memecache to Redis in the UI.
In addition, we implemented the API Client level as a custom event to save the API call response times and cache miss or hit status.
Finally, the rails_performance UI was added to the admin page as a new section called
Performace monitoring
, where you can getCurrent week UI requests full history
Current week UI errors
Slow request
Add the API call details
Changes