Server Monitoring
server_monitoring · OCA/server-tools
-
Security25/25No findings
-
Activity0/25Last human commit 129 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
ClassInstanceCount— Class 'ClassInstanceCount' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceClassInstanceCount— Class 'ClassInstanceCount' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourceIrCron— Class 'IrCron' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceModelRowCount— Class 'ModelRowCount' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (5 occurrences in this file) migration-old-api-base · sourceModelRowCount— Class 'ModelRowCount' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (6 occurrences in this file) migration-old-style-fields · sourceir_cron_monitoring_action— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. (3 occurrences in this file) migration-cron-numbercall · sourceserver_monitor_database_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceserver_monitor_model_row_count_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceserver_monitor_model_table_activity_read_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · sourceserver_monitor_model_table_size_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceserver_monitor_process_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (4 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Server Monitoring
This module allows in-database logging of some statistics in order to monitor the health of an openerp instance.
Database indicators are logged (number of rows, table size, number of reads, number of updates...), with a cron running each week by default. This cron needs to be activated after the module is installed.
Some process indicators are logged (cpu time, memory) together with information about the different XMLRPC calls made to the server (user, model, method).
Two crons are provided to cleanup old logs from the database.
The logs are available through the menu Reporting -> Server Monitoring.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 13
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
server_monitor_database_form_view |
Server Monitor Database tree view | server.monitor.database | form | New |
server_monitor_database_tree_view |
Server Monitor Database form view | server.monitor.database | tree | New |
server_monitor_model_row_count_search_view |
Server Monitor model row count search view | server.monitor.model.row.count | search | New |
server_monitor_model_row_count_tree_view |
Server Monitor model row count tree view | server.monitor.model.row.count | tree | New |
server_monitor_model_table_activity_read_search_view |
Server Monitor table activity updates search view | server.monitor.model.table.activity.read | search | New |
server_monitor_model_table_activity_read_tree_view |
Server Monitor table activity tree view | server.monitor.model.table.activity.read | tree | New |
server_monitor_model_table_activity_update_search_view |
Server Monitor table activity updates search view | server.monitor.model.table.activity.update | search | New |
server_monitor_model_table_activity_update_tree_view |
Server Monitor table activity updates tree view | server.monitor.model.table.activity.update | tree | New |
server_monitor_model_table_size_search_view |
Server Monitor model table size search view | server.monitor.model.table.size | search | New |
server_monitor_model_table_size_tree_view |
Server Monitor model table size tree view | server.monitor.model.table.size | tree | New |
server_monitor_process_form_view |
Server Monitor Process form view | server.monitor.process | form | New |
server_monitor_process_search_view |
Server Monitor Process search view | server.monitor.process | search | New |
server_monitor_process_tree_view |
Server Monitor Process tree view | server.monitor.process | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 8
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
cleanup(self, cr, uid, age, context=None) -
log_measure(self, cr, uid, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
cleanup(self, cr, uid, age, context=None) -
log_measure(self, cr, uid, model_name, method_name, info, with_class_count=True, gc_collect=True, context=None)