Why Strapi monitoring belongs in the launch plan
A self-hosted Strapi serves two audiences at once: editors working in the admin panel and public visitors reading the front end that calls its API. When the Node process, the database or the reverse proxy in front of them fails, the first sign is usually a broken page or a failed editor save reported by a person, not an alert. Monitoring turns those failures into signals your team sees first. It covers four things: whether the service answers (availability), how much CPU, memory and database connection capacity it uses (resource use), which requests return errors (errors), and what the Strapi process and reverse proxy log when something goes wrong (logs).
Set monitoring up before go-live, not after the first incident. The launch plan should name an owner for each signal, a destination for alerts and a short list of thresholds that page someone. Monitoring also needs a review at each Strapi 5 minor release, since the project ships minor versions roughly weekly and each upgrade can change logging, error output or the health endpoint. Confirm the /_health endpoint behavior against your installed Strapi version and your own configuration before you rely on it in an uptime check, because the route, its response and its authentication requirements are not something to assume.
This page answers two questions: what to watch in a Strapi deployment, and what to set up first if time is short. It covers the health endpoint, process and database metrics, error tracking, logs and the first alerts worth configuring. Ask your team or your partner to write down the expected behavior of each signal in your environment, including what a normal response time looks like under editor load, so that an alert means something on the first night of launch.
How Strapi signals reach dashboards and alerts
Requests reach Strapi through the reverse proxy, and Strapi writes its content to the relational database. Prometheus pulls metrics from Strapi and checks its health endpoint on a schedule, and Grafana reads from Prometheus to draw dashboards. When a rule fires, Prometheus hands the alert to Alertmanager, which groups it and routes it to the team. Application errors and logs leave Strapi for a separate log or error tracking destination. Confirm the health check path for your installed version before you write any probe, and check that Prometheus can reach every target from its own network.
Signals from Strapi to dashboards, alerts and error tracking.
Which monitoring stack fits your team
This table compares four ways to monitor a Strapi deployment: self-hosted Prometheus with Alertmanager, self-managed Grafana, Grafana Cloud, and a hosted service from an existing vendor. Read each row against who will be on call and who will keep the monitoring stack itself running. The main takeaway is that the open-source options are free to license but not free to operate.
| Option | What it covers and who runs it | Licensing and cost model | When it fits |
|---|---|---|---|
| Self-hosted Prometheus with Alertmanager | Pulls metrics from Strapi and database exporters and evaluates alert rules. Your team runs the server, storage, retention and Alertmanager cluster. | Prometheus is Apache-2.0 with no paid edition. Cost comes from infrastructure, storage and the people who operate it. | Teams with platform engineers who will maintain scrape configs, retention and alert routing in their own environment. |
| Self-managed Grafana for dashboards | Dashboards and alert views over Prometheus and log sources. Your team runs Grafana with a MySQL or PostgreSQL database for production. | Grafana is AGPLv3 for the core product, with Grafana Enterprise offered as a commercial option. Cost is hosting, database and operator time. | Teams that want dashboards and central access control in infrastructure they already operate. |
| Grafana Cloud with free or Pro tiers | Hosted metrics, dashboards and alerting that receive data from your Strapi and database telemetry. Grafana Labs runs the service; you configure collection. | Free tier available. Pro starts with a 19 US dollar monthly platform fee plus usage, per Grafana's pricing page. Usage drives the bill. | Small teams that prefer not to run storage, but must confirm data residency and retention terms first. |
| Hosted monitoring from an existing vendor | Agents or integrations for servers, databases and HTTP checks, often with alerting bundled. The vendor runs the platform. | Per-host, per-seat or usage pricing set by the vendor. Ask for the quote in writing and confirm what Strapi metrics it can read. | Organizations that already license a monitoring platform and want one alert workflow across all systems. |
Which Strapi signals to watch first
Start with four groups of signals: availability, process health, database health and errors. Availability means the /_health endpoint and a real public API request. A health check that only confirms the process is listening will pass while editors cannot load content, so pair it with a read request against a published content type that your front end actually uses. Process health covers Node.js restarts, memory and CPU use, and event loop lag. Restart counts that climb steadily usually point to a crash loop or memory growth, and rising event loop lag often shows up before users notice slow responses.
Database health covers connection count, query latency and reachability from the Strapi process. Strapi 5 supports PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3, and the Strapi installation docs define the supported Node.js LTS versions. Confirm your production Node.js and database versions against those docs, then monitor the components you actually run, since exporter names and metric sets differ between engines. Errors cover the rate of 5xx responses and logged exceptions. Group them by route so a failing content endpoint is not hidden inside a healthy overall average.
Before you build alerts on /_health, confirm what the endpoint returns in the Strapi release you run and whether it reports database reachability or only process state. Record the response in a staging environment after each upgrade, because a check that silently changes meaning is a common source of false confidence. Treat the four groups as the first alert set: each alert should name an owner and a response, and any signal you cannot act on should stay on a dashboard rather than paging anyone.
Alerts worth setting up first
Six alerts cover the failures editors and end users notice first: the site going dark, the database giving up, the Node process crash-looping, the API throwing errors, storage filling up, and a certificate lapsing at the proxy. Each signal needs a threshold and an owner, and the values should come from the team that runs the service rather than from defaults.
Endpoint unreachable
A probe against the Strapi /_health endpoint from outside your network tells you whether the site answers at all. Run the probe through the same reverse proxy and DNS path editors and visitors use, so a failure in the load balancer or DNS shows up too. Confirm with the owning team how many consecutive failed checks should page someone, the check interval, and which regions or networks the probe runs from. Editors lose the admin panel and visitors lose content the moment this fails, so it is usually the first page to wire up.
Database unreachable or pool exhausted
Strapi holds a connection pool to PostgreSQL, MySQL, MariaDB or SQLite, and a stalled database or exhausted pool produces errors that look like application bugs. Alert on connection failures from the application and on the database's own connection count against its limit. Confirm with the database owner the maximum connections, the pool sizes configured for Strapi, and whether a managed database service already alerts on these conditions. Your alert should name the database host so on-call knows where to look first.
- Minimum supported version
- PostgreSQL 14
Node process restarting
A Strapi process that restarts repeatedly often points to a crash on a specific content request, a memory leak, or a failed boot after a deployment. Alert on restart count within a window rather than on single restarts, since a planned rolling deploy will restart processes too. Confirm with the platform team how the process manager or container runtime reports restarts, and which Node.js version is in use, because Strapi 5 runs only on Active or Maintenance LTS Node.js versions. Pair the alert with the most recent deployment marker so the cause is easy to trace.
Sustained 5xx errors on the API
A short burst of server errors during a deploy is normal, but a sustained rate of 5xx responses on the content API means visitors are seeing broken pages. Measure the share of 5xx responses over a rolling window at the proxy or in your application logs, not a raw count, so traffic spikes do not cause false alarms. Confirm with the front-end and editorial teams which endpoints are business-critical and what error rate they consider unacceptable. A common fault is a broken schema change after a content type edit, so check recent changes first.
Disk full on media or log storage
Strapi writes uploads to local storage unless a provider sends them elsewhere, and log files grow until something rotates them. A full disk stops uploads, fails writes and can take the database down with it. Alert on free space with a threshold early enough to act on, for the volume holding uploads, the database and logs separately. Confirm with the infrastructure team where each path lives, who owns log rotation, and whether media is on object storage. Full volumes are often silent until an editor reports a failed upload.
Certificate expiry at the proxy
The TLS certificate on your reverse proxy or load balancer expires on a fixed date, and an expired certificate blocks both the admin panel and the public site at once. Alert on the number of days remaining on each certificate served for the Strapi hostnames, including the admin host if it is separate. Confirm with the owner of DNS and certificate issuance who renews the certificate, whether renewal is automated, and how many days of warning the team needs to act. Test the alert against a staging certificate before relying on it.
Setting up the first monitoring baseline
This sequence gives a self-hosted Strapi deployment a first working monitoring stack: a health check reachable through the proxy, Prometheus scraping the right targets, clustered Alertmanager, a Grafana dashboard, and a confirmed alert path to the on-call channel. It is designed to be finished before the system takes production traffic.
Confirm versions against the installation docs
Record the Strapi version, the Node.js release line and the database version in use, then check each against the Strapi installation requirements. Strapi 5 runs only on Active or Maintenance LTS Node.js versions and supports PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3, and it does not support MongoDB. Also confirm Strapi is on a supported release, since Strapi v4 reached end of life on April 30, 2026. Done means a written version inventory that the monitoring configuration references, so later alerts match the platform you actually run.
Expose the health check through the proxy
Configure the reverse proxy to forward the Strapi health endpoint at /_health and nothing under the admin path to monitoring sources. The platform team owns the proxy configuration, and the security owner should review the route list. Test the endpoint from inside the monitoring network and from outside it. Done means the health route returns a successful response to the monitoring network, while requests for admin routes from outside the trusted network are still refused.
Install Prometheus and define scrape targets
Install Prometheus on a host you control, then define scrape jobs for the Strapi health route, the database exporter and the host or container metrics your team already collects. Use static configuration or service discovery, whichever matches your hosting. Keep in mind that Prometheus local storage is a single node, not clustered or replicated, and its default retention is 15 days unless you configure it otherwise. Done means every target shows as up in the Prometheus targets view, and a PromQL query returns recent samples for each job.
Run Alertmanager as a cluster
Deploy at least two Alertmanager instances using its cluster flags so they share silences and notification state. Configure Prometheus with every Alertmanager address directly, not through a load balancer, as the Alertmanager documentation recommends. Set grouping rules so one outage does not generate a flood of messages. Done means each Alertmanager instance lists its peers as members of the cluster, and Prometheus shows every instance as an active alertmanager endpoint.
Connect Grafana to Prometheus
Install Grafana on infrastructure you control and use PostgreSQL or MySQL for its configuration database rather than the SQLite default, which the Grafana docs say does not scale for production. Add Prometheus as a data source, ideally through provisioning files so the setting is reviewable in version control. Done means the data source test succeeds and Grafana returns the same results as a direct Prometheus query.
Build the first Strapi dashboard
Create one dashboard with panels for health endpoint availability, response status codes, process restarts or memory use, and database connection state. Keep the first version small and tie each panel to an alert rule you intend to keep. Save it as a provisioned dashboard so it can be restored. Done means each panel displays data for the last several hours and a reviewer can explain what each panel tells the on-call engineer.
Send a test alert to the on-call channel
Create a deliberately failing alert, for example a rule that fires when the health check is down for a short window in a non-production environment, then restore the service. Confirm the alert moves through Prometheus to Alertmanager and arrives in the on-call channel with the expected labels and link. Then remove the test rule. Done means the on-call channel received the notification and someone on the rota confirmed it, with the outcome written into the runbook.
Storage, retention and high availability trade-offs
Plan the monitoring stack's storage and availability before the first alert fires, because Prometheus local storage is a single node. Prometheus writes samples into a local time series database organized into two-hour blocks with a write-ahead log, and it keeps data for 15 days by default. Retention can be set by time or by size through the storage flags, so set both deliberately. Local storage is not clustered or replicated, so treat the Prometheus host like any other single-node database: give it dedicated disk sized for your retention, monitor free space, snapshot or back up its data directory, and plan how you rebuild it after a host failure. Metrics lost during an outage are not recovered from another Prometheus instance unless you have configured one.
If you need history beyond the local window, Prometheus remote write can send samples to external long-term storage systems, and remote read can query them back. Remote write adds a dependency on that system and on network paths between the two, so decide who owns it and what happens to queued samples during an outage. Confirm the retention and query limits of any backend against its own documentation before committing. Alertmanager is the other component to make resilient. It can run as a cluster for high availability through its cluster flags, and Prometheus should be configured to send alerts to every Alertmanager instance rather than to a load balancer in front of them.
Grafana has its own storage decision. It keeps configuration in SQLite by default, but its installation documentation says SQLite does not scale for production, so use MySQL 8.0 or later or PostgreSQL 12 or later for production and for high availability. High availability means two or more active-active Grafana servers behind a load balancer sharing that database. Alerting needs extra configuration in this setup to avoid duplicate notifications, and Grafana Live has limitations in high availability. Test a failover with real alert rules and confirm that each alert is delivered once before you rely on the setup.
Protecting metrics, dashboards and logs
Metrics, dashboards and logs for a Strapi deployment reveal how the system runs and, in logs, sometimes what users submitted. The cards below cover the access paths to decide before anything goes live, so that monitoring does not become a second, less protected route into your Strapi stack.
Authenticate the metrics endpoint
Prometheus pulls metrics over HTTP from each target, so every exporter or application metrics path is a potential read surface for process details, version information and traffic patterns. Decide which endpoints require credentials and which scrape jobs present them, and store those credentials in your secrets manager rather than in scrape configuration committed to Git. Check the endpoint without credentials from outside the scrape network before you treat it as protected.
Prometheus security modelRestrict scrape and admin network paths
Limit which hosts can reach Prometheus, Alertmanager and Grafana, and which hosts Prometheus can reach on the Strapi side. Prometheus storage is a single node without built-in replication, so the Prometheus host and its disk deserve the same access controls as any other single-node database. Keep Alertmanager reachable only from Prometheus and your on-call tooling, and confirm the firewall rules with a test from a host outside the approved list.
Apply Grafana security hardening settings
Grafana's hardening guidance covers secure and SameSite cookies, a Content Security Policy, Trusted Types, hiding the version from unauthenticated users, requiring authentication for the metrics endpoint and domain verification against DNS rebinding. Record each setting you change in your provisioning or configuration files so that an upgrade or rebuild keeps it. Ask whether your Grafana build and any plugins you install are compatible with the policies you enable.
Grafana hardening docsControl access to logs with personal data
Strapi logs can capture request paths, query strings, user identifiers and error payloads that contain editorial or end-user data. Decide which log fields are dropped or masked before they reach a shared store, set retention for the log platform, and limit dashboard access by role. Apply the same review to error tracking events, which often include request bodies. Confirm with your privacy and compliance team who may read logs and for how long.
Decide how SSO applies to each tool
Grafana's authentication docs state that SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud, so a self-hosted Grafana on the open-source edition will rely on the other supported providers such as generic OAuth or Entra ID. Strapi SSO covers administrator login to the admin panel only, and end-user authentication for your site runs through the Users and Permissions plugin. Map each system to its own identity path and confirm the edition you need before you sign a contract.
Grafana authentication docsWhat monitoring Strapi costs and what the work needs from you
What drives the cost of monitoring a Strapi deployment?
The cost comes from four places: the infrastructure that runs Prometheus, Alertmanager and Grafana, the storage that holds metrics for the retention you choose, the staff who keep the stack running, and the one-time implementation work. Prometheus itself is Apache-2.0 licensed with no paid edition, so there is no license fee for the core metrics stack. Storage grows with the number of series, scrape frequency and retention. Prometheus defaults to 15 days of local retention, and the storage docs note that local storage is not clustered or replicated, so longer retention or high availability adds components to pay for and operate. Ask any partner for a written quote that lists each component, who builds it, who runs it after handover, and which costs recur monthly.
Can our own team set up Strapi monitoring without a partner?
Yes, a team with Linux, container and database experience can deploy Prometheus, Alertmanager and Grafana without outside help, and the official documentation covers each component. The harder parts are usually not the installation. They are writing alert rules that reflect your Strapi traffic, routing alerts to people who will act on them, and keeping the stack patched. Prometheus minor releases stop receiving bug fixes about six weeks after they ship, so someone must follow the release cycle or choose the long-term support line. If your team already runs a monitoring stack, adding Strapi targets may be a small change. If not, a partner can help scope the build so the in-house team understands what it inherits.
How long does a Strapi monitoring setup take, and what sets the duration?
No duration is given here because the supplied sources do not give one for this work. The main factors are the number of Strapi instances and environments, whether metrics must be kept longer than the default 15 days, whether Grafana needs high availability with a shared MySQL or PostgreSQL database, how many alert channels and on-call rules must be defined, and whether error tracking and log collection are in scope. Access to your cloud accounts, network paths and approval cycles can also extend the work more than the technical build. Ask for a timeline in the written scope with milestones for each component and for the handover of alert rules.
What do we need to provide before monitoring work starts?
The work needs decisions and access that only your organization can supply. Name one owner who approves alert thresholds, severity levels and escalation paths. Provide access to the hosts, Kubernetes clusters or containers that run Strapi, the database used by Strapi, and the network segments where scraping will happen. Decide who receives alerts, through which channels, and who is on call at night and on weekends. Confirm where metrics and logs may be stored, because retention and data location affect both cost and compliance review. Without these decisions, a monitoring build tends to produce dashboards that nobody checks and alerts that nobody answers.
Does the choice of Grafana license affect how we can deploy monitoring?
Yes, the license matters. Grafana Labs moved Grafana, Loki and Tempo from Apache License 2.0 to AGPLv3 on April 20, 2021, and offers Grafana Enterprise as a non-AGPL commercial option. Internal use under AGPLv3 is a different question from offering modified Grafana to outside users, so have your legal team review your use case against the Grafana Labs licensing page. Enterprise features, including SAML, team sync and SCIM provisioning, are limited to Grafana Enterprise and Grafana Cloud according to the authentication docs. Prometheus remains Apache-2.0, so its licensing does not add a fee. Confirm which Grafana edition a quote assumes and whether any enterprise feature is required for your identity model.
Does Strapi Cloud include monitoring in its hosting plans?
The supplied Strapi Cloud pricing information lists plan allowances for API requests, storage and bandwidth, and a 99.9% uptime SLA on the Business plan, but it does not describe a monitoring stack that you can use to watch your own application signals. Treat Strapi Cloud uptime as a vendor commitment, not as a replacement for your own health checks, error tracking and alert routing. Before you rely on a plan, check the current Strapi Cloud documentation or ask the vendor in writing which health, log and metric data is exposed to your team, how long it is kept, and whether you can export it to your own tools. Self-hosted Strapi gives you full control of these signals, along with the responsibility to build them.
What recurring work does a monitoring stack create after launch?
After launch, the stack needs regular attention in four areas. Prometheus and Grafana require version updates, and Grafana publishes patch releases at least monthly according to its upgrade guidance, with each minor release supported for nine months. Alert rules need tuning as traffic and content patterns change. Storage must be watched so retention limits do not drop data you need for incident reviews. Access reviews and secrets rotation for dashboards and data sources must also happen on a schedule. These tasks recur every month or quarter, so budget for them as ongoing staff time or a support retainer, and ask a partner to state which of these tasks it will perform after handover.
Limits to confirm before you commit
Monitoring a Strapi deployment combines several open-source tools, each with its own license, release cadence and limits. The items below are the points to confirm in your own environment before you pick a stack, because they decide who can be paid to run it, how long you can stay on a version, and whether the data you need is available at all.
Prometheus is not a billing source
Prometheus favors reliability over precision and is not designed for 100 percent accuracy. Its counters are sampled and can miss events, so it should not be the record for per-request billing or anything where every call must be counted. For Strapi, use it for trends and alerts, and take billable or audited counts from application logs or the database. Confirm with your finance and compliance owners which numbers need exact counts.
Prometheus overviewHealth endpoint behavior by version
The /_health endpoint and what it reports can differ between Strapi versions and between hosting setups. Before you wire a probe, test it on the exact Strapi release you run, confirm which status codes it returns when the database is unreachable, and confirm whether it is exposed through your reverse proxy or only inside the cluster. Do not assume the response from an older version or a different host.
Grafana AGPLv3 terms
Grafana, Loki and Tempo moved from Apache License 2.0 to AGPLv3 in 2021, while some plugins and agents kept other licenses. Whether AGPLv3 obligations matter depends on whether you modify Grafana and how you make it available to users, so have your legal team review your use case. Also confirm which Grafana Enterprise terms apply if you need features outside the open-source edition.
Grafana licensingGrafana Live limits in HA
Grafana high availability runs two or more active-active servers behind a load balancer on a shared MySQL or PostgreSQL database. The HA documentation notes that Grafana Live has limitations in that setup, and that alerting needs extra configuration to avoid duplicate notifications. If you plan live dashboards or alerts across nodes, test those features on a multi-node staging environment before you rely on them.
Grafana HA docsSupport windows for each line
Prometheus LTS releases receive bug fixes for one year, and non-LTS minor releases generally stop receiving fixes after six weeks. Grafana minor releases are supported for 9 months, and the last minor of a major version for 15 months. Write these dates into your upgrade calendar and confirm which line each component is on, so an unsupported release does not reach production unnoticed.
Prometheus release cycleMetrics and logs your plan exposes
If Strapi runs on Strapi Cloud, you do not control the host, so confirm which metrics, logs and log retention the plan exposes before you design alerts around them. Self-hosted deployments avoid that limit but still depend on the reverse proxy, container runtime and database for data. Ask the hosting provider for the exact log fields and export options, and confirm that a scrape endpoint or log stream can reach your monitoring stack.
How DeployOpen scopes and supports Strapi monitoring
DeployOpen plans, builds, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For Strapi monitoring, that means agreeing in writing which health checks, metrics, logs, error tracking and alerts are in scope before any work starts, then handing the setup over so your own team can run it.
How we scope
- Inventory the Strapi instances, database, reverse proxy and hosting platform that need watching, and who receives alerts
- Confirm which Strapi version and Node.js line each environment runs before choosing checks
- Agree in writing which dashboards, alert rules and log sources are included, with fixed deliverables and timelines
How we build
- Configure the /_health endpoint checks and connect them to your existing monitoring tooling in your infrastructure
- Set up process and database metrics collection, retention limits and the alerts agreed during scoping
- Test each alert by triggering the failure it covers, and confirm notifications reach the right on-call channel
How we hand over
- Document what each check, metric and alert measures, its threshold and the response expected from your team
- Provide configuration as code where the chosen tools support it, so changes are reviewed and repeatable
- Walk your engineers through the runbook, including what to do when an alert fires and how to silence it safely
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
- Ongoing support, upgrades and monitoring reviews are available as a retainer after handover
- Ask any partner to confirm which tool versions, retention settings and alert routes they will own afterward

