How to Monitor Odoo: Metrics, Alerts and Setup Checklist

Monitor Odoo.sh and self-hosted Odoo: track errors, p95, scheduled actions and PostgreSQL. Set up Fivenines and validate alerts with a practical checklist.

To monitor Odoo, combine an external availability check with signals from the application: response time, errors, scheduled actions, PostgreSQL and resource usage. Then verify that alerts reach an owner and clear after recovery. A green web page alone cannot tell you whether invoices are being sent or a scheduled stock synchronization is stuck.

This guide covers Odoo.sh and self-hosted Odoo, including Docker. It explains what to watch, how to connect a database to Fivenines Odoo monitoring, and how to validate the setup without disrupting production. The module supports Odoo 16 through 20, Community and Enterprise. Odoo Online is a different hosting service and does not support this custom Python module.

1. Identify the Odoo environment before adding monitors

Create one inventory row per database and environment. Record the client, hosting model, Odoo version, public domains, responsible team and expected operating hours. Keep production and staging separate even when they share the same database name.

Environment Start with Add when needed
Odoo.sh The branch's Monitor tab, build logs and database context Application signals and a shared view across clients
Self-hosted Linux Odoo logs, service health, PostgreSQL and host metrics External uptime checks and centralized application alerts
Docker Container identity, persistent addons and database connectivity Application monitoring plus host/container resource context
Odoo Online The controls available in the hosted service and external website checks Do not plan to install the Fivenines Python module

Odoo.sh already includes monitoring. Its branch documentation describes the Monitor tab and operational tools. Use those for the environment you are investigating. A cross-client monitoring view serves a different purpose: finding which client's database needs attention without opening each project separately.

For a multi-client inventory, include an escalation contact and a maintenance window. An alert with no owner is only another dashboard entry.

2. Monitor six signals, with explicit limits

External availability and TLS

Check each customer-facing hostname from outside the Odoo environment. Monitor the expected HTTP response and the HTTPS certificate, including expiry and hostname validity. An Odoo process can be running while a reverse proxy, DNS record or certificate prevents users from reaching it.

Use a public, read-only URL that represents the site. This bounded curl request records connection stages without disabling certificate validation:

ODOO_URL='https://odoo.example.com/web/login'
curl --silent --show-error --output /dev/null \
  --connect-timeout 5 --max-time 15 \
  --write-out 'http=%{http_code} dns=%{time_namelookup}s connect=%{time_connect}s tls=%{time_appconnect}s first_byte=%{time_starttransfer}s total=%{time_total}s\n' \
  "$ODOO_URL"

Replace the example hostname. The timings are cumulative from the start of the transfer, not independent durations to add together. A 200 response could still be a proxy page or the wrong database; check the expected content and database routing separately. A 301 or 302 requires examining the destination, not immediately declaring an outage. Curl can exit successfully on an HTTP error, so inspect http= as well as its exit status.

This is one measurement from one location, not a load test or a browser transaction. It does not submit a login or prove that checkout, invoicing or reporting works. See the SSL certificate monitoring checklist when building your hostname inventory.

Request volume, response time and SQL query counts

Track request volume alongside latency and errors. A rising p95 means the slower end of the measured requests has become slower; interpret it with the sampling window and request count. A quiet staging database and a busy production database should not share an arbitrary latency threshold.

Fivenines exposes database response-time and SQL-query-count signals. Counts help spot requests that perform more database work, but they are not the query text, a SQL execution plan or a complete distributed trace. Investigate the relevant operation before deciding the database is the cause.

When you need call-level detail, use the Odoo profiler in a controlled environment and time window. Profiling adds overhead. Compare the same workflow before and after a change, rather than treating an instrumented request as a production benchmark. Our application performance monitoring guide explains how to connect symptoms to the next diagnostic step.

Logged errors

Monitor recurring and newly observed error types. Keep enough context to identify the database, affected component and incident window. A count answers how often something happened; a message may explain what failed.

The Fivenines module collects errors emitted through Odoo logging. Error details can be turned off in its settings. Review that choice before onboarding a client: application messages can contain business information, and masking is not a guarantee that every sensitive value is removed. Do not copy enrollment keys, customer records or unredacted logs into a shared incident channel.

Scheduled actions

Odoo scheduled actions run through ir.cron; they are not the same scheduler as a Linux crontab. Watch whether an action is active, overdue or apparently stuck, and inspect its execution history and logs. Failure-count information is available from Odoo 18; do not assume the same fields exist in 16 and 17.

Neither lastcall nor nextcall universally proves successful business completion. If a mail action ran, confirm the expected mail outcome. If an inventory import ran, check the records and reconciliation result. Before retrying, establish whether a partial run already sent emails, created invoices or changed stock.

The official scheduled-action reference documents version-specific behavior. For the broader distinction between execution and outcome, see how to check cron jobs. Do not apply a generic SQL update or a blanket restart to every delayed Odoo action.

PostgreSQL and resource pressure

Correlate connection-pool pressure, long transactions and database growth with the application's request and error window. Include CPU and memory used by Odoo. On self-hosted deployments, add host-level monitoring when you need disk, memory pressure or CPU contention context; the Odoo module does not replace every operating-system signal.

Prefer a sequence such as: identify the affected database, align timestamps, inspect latency and errors, then investigate resources or SQL. A high CPU value alone does not establish why a specific business operation is slow.

Freshness of collection

Monitor whether data is still arriving. A chart that ends ten minutes ago is not evidence that the application has been healthy for the last ten minutes.

Distinguish a database that stopped reporting from a website that stopped responding. Lost outbound connectivity can interrupt the module's telemetry while the website remains reachable. Conversely, an external endpoint can fail while internal collection continues.

3. Connect Odoo to Fivenines

Use the Fivenines Monitoring module on Odoo Apps and the maintained installation instructions. Confirm compatibility with your deployed version and test changes in staging first.

On Odoo.sh

Use the Odoo Apps listing's Deploy on Odoo.sh route, or add the module repository to your project's addons using the documented Git-submodule method. Deploy through your normal branch and build workflow, then install the module from Apps in the intended database.

Do not install into every branch simply because the module's code is present. Production, staging and restored databases need an explicit monitoring decision.

On a self-hosted server or Docker

The installation helper supports the official Debian/Ubuntu Odoo package. It prepares the module and configuration, then prints the restart and activation steps; it does not restart the ERP for you. Schedule that restart through your normal change process.

On a Docker host, the helper identifies supported containers and prints the relevant addon-mount instructions rather than changing them automatically. Keep the module in the persistent addons location used by your deployment. For other layouts, follow the manual procedure instead of assuming package paths apply.

You can download the installer for inspection and run its documented dry-run mode before deciding to apply it:

curl --fail --show-error --location \
  --output fivenines-odoo-install.sh \
  https://github.com/Five-Nines-io/fivenines_odoo/releases/latest/download/install.sh

# Inspect the downloaded file first; run the dry run on the intended host.
less fivenines-odoo-install.sh
bash fivenines-odoo-install.sh --dry-run

The dry run is not an installation or an end-to-end monitoring test. Check the release and the current installation documentation before an actual change. Apps → Import Module is not a substitute for installing this Python module on the server.

Enroll the intended database

Once the module is installed, open Settings → Fivenines Monitoring, paste the enrollment key supplied by Fivenines and save. Treat the key as a secret. The module sends data over outbound HTTPS; installing a separate Fivenines server agent is not required for this application integration.

In Fivenines, verify the database identity and the time of the first received data. Review its discovered websites and their uptime monitors within your plan. Check the domains, HTTPS coverage and expected response for each site rather than accepting discovery as a completed test.

A staging branch or restored copy is proposed separately. It is not added to monitoring or billed until you choose Monitor. Confirm that production's figures remain associated with production before accepting a new proposal.

4. Set alerts that lead to a decision

Start from the client's service expectations and observed workload. Decide who receives each alert, what evidence they need and how recovery is recognized. Avoid assigning the same p95, failure or lateness threshold to every database.

Signal Question an alert should answer First response
Website unavailable Can users reach the expected endpoint? Check DNS, TLS, proxy and application response
New or repeated error Which database and operation are affected? Inspect the error context and recent changes
Sustained slow requests Is the affected workflow slower under comparable load? Align p95, volume, SQL counts and resource signals
Delayed scheduled action Is work late, blocked or already partially completed? Inspect logs and business outcome before retrying
Data no longer received Has collection stopped, or is silence expected? Check maintenance, module state and outbound connectivity

These are policy questions, not a claim that every possible alert formula is available in the UI. Configure the supported controls, document any remaining gap and test the actual notification route. For integrations spanning clients, preserve database and client identity in the incident context.

5. Validate collection, alerting and recovery

Use a staging database and a harmless test action. Agree the expected result and recovery procedure before introducing a fault. Do not deliberately break invoicing, mail delivery or stock processing in production just to test an alert.

  1. Collection: verify a recent timestamp, correct database/environment and plausible request data after a small read-only test.
  2. Availability: compare an external check with the expected page. Test the notification route on a disposable endpoint, or with the monitoring system's supported test mechanism.
  3. Errors: generate a recognizable, harmless error in a test module. Verify that the expected error signal appears and reaches the configured recipient, then remove the test condition.
  4. Scheduled actions: use a dedicated test action with a verifiable harmless result. Confirm the result separately from timing fields. Test lateness only within an agreed staging procedure.
  5. Collection interruption: on a disposable environment, use a reversible, documented method to interrupt telemetry. Check the absence-of-data behavior and restore collection.
  6. Recovery: confirm that new data resumes, the alert resolves according to its policy, and the next responder can understand what happened.

This is an acceptance procedure, not a report of a test performed on your database. Keep timestamps and observations. If a step has not been exercised, mark it untested rather than calling the deployment fully validated.

Copyable Odoo monitoring acceptance checklist

Client / owner:
Database identity / environment:
Odoo version / hosting model:
Module version / installation method:
Public hostnames and expected responses:
Collection interval observed / freshness expectation:
Error detail setting and access review:
Critical scheduled actions and expected business outcomes:
Alert condition / recipient / recovery rule:
Maintenance window and escalation contact:
Test performed / timestamp / observed evidence:
Untested behavior or remaining gap:
Copy or staging proposal reviewed:

Start with one database and complete this checklist before expanding to the rest of the portfolio. Connect your first Odoo database with Fivenines, verify its first collection and test the alert path. The useful outcome is a named responder who can recognize and investigate a real problem, not merely another green tile.

Read more