OpenProject health checks and Prometheus metrics

OpenProject exposes several health check endpoints and a Yabeda-based Prometheus exporter. This page explains which endpoint to use for liveness, which for alerting, and how to protect and scrape them safely.

On this page

Monitoring OpenProject health checks and Prometheus metrics for self-hosted teams

A self-hosted OpenProject needs monitoring that warns you before users report an outage. OpenProject exposes health check endpoints under /health_checks/ that report the state of components such as the default application, the database, mail, Puma, background workers and the worker backlog. Setting OPENPROJECT_PROMETHEUS_EXPORT=true adds a Prometheus exporter that publishes application metrics for scraping. Teams need both once more than one person depends on the instance, because a status page alone does not tell you when a queue is backing up or a database connection is failing.

Liveness and alerting need different endpoints, and the documentation does not recommend /health_checks/all as a liveness probe. Use a narrow endpoint such as /health_checks/default for the container or process liveness check, so a restart is triggered only by the web application being unresponsive. Use the component endpoints, such as database, mail, puma, worker and worker_backed_up, as the basis for alert rules that tell the operations team which part has degraded. Confirm the exact response codes and recommended alert thresholds in the monitoring documentation for your release before you write rules.

The exporter is based on Yabeda and includes ActiveRecord, Rails and Puma plugins, served on port 9394 by default. Those series show database activity, request handling and Puma worker and thread state, which together explain most slowdowns. Protect the health check endpoints with OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD if they are reachable beyond your monitoring network, and test this first, because the documentation warns that it may break existing container health checks. Confirm the Prometheus scrape configuration, network path and retention in your own environment, and plan who receives and acts on each alert.

Which health check endpoint fits liveness, alerting and deep diagnosis

This table compares the OpenProject health check endpoints and the Prometheus exporter setting by what each one checks and where it fits in a probe, an alert or an incident investigation. Use the narrow endpoints for alerts and the broad endpoint for diagnosis, and confirm each response's exact behavior in the monitoring docs before you wire it into automation.

EndpointWhat it checksLiveness and alerting fitWhen to use it
/health_checks/defaultCore application status, with its exact scope defined in the OpenProject monitoring docsLiveness: possible candidate if it does not depend on other services. Alerting: confirm scope before relying on it.Quick reachability check from a load balancer or uptime monitor
/health_checks/databaseConnectivity from the application to its PostgreSQL databaseLiveness: poor fit, since restarting web containers does not fix a database outage. Alerting: good fit.Alert when the instance cannot reach PostgreSQL
/health_checks/mailThe mail delivery path used for notificationsLiveness: poor fit, since a mail outage should not restart web containers. Alerting: good fit.Alert on mail failures separately from core availability
/health_checks/pumaWhether the Puma application server is respondingLiveness: good candidate, since it reflects the web server process. Alerting: good fit.Probe the web container and alert when it stops responding
/health_checks/workerWhether the background worker process is running and reportingLiveness: poor fit, since restarting web containers does not restart a stalled worker. Alerting: good fit.Alert when background processing stops, such as emails not being sent
/health_checks/worker_backed_upWhether the background job queue has a backlog that the check treats as unhealthyLiveness: poor fit. Alerting: good fit for queue growth, once thresholds are confirmed.Alert on sustained backlog before users report delays
/health_checks/allRuns every individual check and returns the combined resultLiveness: not recommended by the docs. Alerting: weak fit, since one failing dependency can mark the whole response as failed.Manual deep diagnosis during an incident, not as a probe
OPENPROJECT_PROMETHEUS_EXPORT=trueEnables a Yabeda-based Prometheus exporter with ActiveRecord, Rails and Puma plugins on port 9394 by defaultNot a health check. Alerting: provides the metrics that Prometheus alert rules evaluate.Enable when Prometheus scrapes the instance and the port is reachable from it

How to enable health checks and the Prometheus exporter

This sequence confirms the OpenProject instance is healthy, separates the endpoint used for liveness from the one used for alerting, turns on the Yabeda-based Prometheus exporter, and connects it to a scrape job so metrics appear in Prometheus. Each step ends with a check you can verify before moving on.

  1. Confirm the instance version and baseline

    The platform team records the running OpenProject version and the host or container it runs on before changing anything. For packaged installs, this means checking the installed release on the server. For Docker installs, it means checking the image tag in the Compose file or Kubernetes manifest. Keep this record with the change ticket so you can tell later whether a metric or health result changed because of the upgrade or because of the new configuration. Done when the version is written down and the instance loads its login page from the monitoring host's network path.

  2. Test each health check endpoint by hand

    Request each endpoint from a host on the monitoring network: /health_checks/default, /health_checks/database, /health_checks/mail, /health_checks/puma, /health_checks/worker and /health_checks/worker_backed_up. Record the HTTP status and response body for each. Expect a healthy instance to return success for the checks that apply to it, and treat any failure as a finding to investigate before you build alerts on it. Done when you have a table of endpoint, status and body for the whole instance, including which endpoints fail and why.

  3. Choose liveness and alerting endpoints

    Assign one endpoint to liveness, which tells an orchestrator or container runtime that the process should keep running, and different endpoints to alerting, which tell operators that a dependency or queue needs attention. The OpenProject monitoring documentation does not recommend /health_checks/all as a liveness probe, so keep it out of that role. Write the decision in your runbook with the reason for each choice. Done when every probe and alert rule in your plan names one endpoint and the reason it was chosen.

  4. Protect the health endpoints with a password

    Set OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD in the environment that runs OpenProject, then restart the service through your normal process. Store the value in your secrets manager, not in a plain Compose file committed to version control. Be aware that this setting may break existing container health checks that do not send the password, so update those probes at the same time. Done when an unauthenticated request to a health endpoint is refused and a request carrying the configured credential returns the expected status.

  5. Enable the Prometheus exporter

    Set OPENPROJECT_PROMETHEUS_EXPORT=true in the same environment file or manifest where the rest of the instance configuration lives, then restart OpenProject. The exporter is based on Yabeda and includes ActiveRecord, Rails and Puma plugins, serving on port 9394 by default. Changing this setting does not require a database migration, but it does change what listens on the host, so confirm the change with your change board. Done when the restarted instance shows the exporter enabled in its startup configuration and no existing health check has started failing.

  6. Confirm the exporter answers on port 9394

    From the monitoring host only, request the metrics endpoint on port 9394 and check that the response is plain text containing metric lines for Rails, ActiveRecord and Puma. If the request fails, check whether a host firewall, container port mapping or network policy blocks port 9394 between the monitoring network and the OpenProject host. Done when the exporter returns metric output from the monitoring host, and a request from an unapproved network segment is blocked.

  7. Add the Prometheus scrape job

    Add a scrape job to the Prometheus configuration that targets the OpenProject host on port 9394, using static configuration or the service discovery your environment already uses. Keep the job name and labels consistent with your naming standard so dashboards and alert rules can filter on them. Reload or restart Prometheus through your normal change process. Done when the target appears on the Prometheus targets page with a state of up, and its last scrape shows no errors.

  8. Verify that series appear and restrict access

    In the Prometheus expression browser, query a Puma or Rails series from the new job and confirm that values are returned and update across scrape intervals. Then review access: the exporter and the health endpoints should be reachable from the monitoring network only, and the Prometheus server should be placed behind the same network controls. Prometheus is designed to pull metrics over HTTP from its targets, so the access rule belongs on the OpenProject side as well as in the monitoring configuration. Done when the query returns live series, and a test request from outside the monitoring network fails.

Protecting health checks with OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD

Set a password on OpenProject's health check endpoints only after you have mapped every system that calls them, because the endpoints can reveal internal state and the password can break probes that currently work. The health checks cover the default application state, the database, mail, Puma, the background worker and worker backlog, and an all endpoint that the OpenProject monitoring docs do not recommend as a liveness probe. Those responses describe how the instance is behaving internally, so an anonymous caller who can reach them learns about database reachability, mail delivery and worker health. That is useful to an attacker mapping an outage window or a degraded component, which is why exposure on a public listener deserves a deliberate decision rather than a default.

The protection is enabled with the OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD variable. The monitoring docs warn that setting it may break existing container health checks, so treat the change as a coordinated cutover. Start by inventorying every caller: the Docker or Compose health check definition, Kubernetes liveness and readiness probes, load balancer or reverse proxy health monitors, uptime services and any Prometheus blackbox checks. Confirm the exact credential handling for each caller in the monitoring docs and in your own load balancer or monitoring product, since the expected header or parameter format is not something this page specifies. Update the probes, load balancer and monitors together, and plan a window in which a failing probe does not trigger an automatic container restart.

After the change, test each caller individually instead of checking the web interface in a browser. Request each endpoint without credentials and confirm it is refused, then request it with the credentials your probe uses and confirm the expected status. Watch the container restart count and load balancer pool membership for a period after cutover, because a silent probe failure often shows up as repeated restarts rather than an obvious error. Keep the password in your secrets store, not in a Compose file committed to version control, and record which systems hold it so rotation is a known task. Finally, verify that Prometheus, if you use the exporter, can still scrape its own endpoint, since the metrics path is separate from the health checks.

How probes, Prometheus and Alertmanager fit together

The diagram starts with the load balancer or container runtime calling the default health check for liveness, and with Prometheus pulling the Yabeda exporter on port 9394 and the health endpoints from inside the monitoring network. Prometheus evaluates alert rules locally and sends firing alerts to every Alertmanager instance directly, not through a load balancer. The dashed trust boundary marks where OpenProject's network ends and the monitoring network begins, which is where the OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD setting and network rules must be checked.

Liveness, scraping and alerting paths across the OpenProject and monitoring networks.

Security and operational risks of exposing OpenProject metrics

Health endpoints and Prometheus metrics look harmless, but they reveal how your OpenProject instance is loaded and used, and the monitoring stack itself becomes something to secure and keep running. The cards below cover the exposure, authentication and storage decisions that connect OpenProject health checks with Prometheus metrics.

Health endpoints left open

Health check endpoints such as /health_checks/all answer requests without authentication unless you configure a password. Anyone who can reach the URL can see the state of database, mail, Puma and worker checks, which helps an attacker time a denial-of-service attempt. Confirm from outside your network that the health paths are unreachable, and restrict them at the reverse proxy to your monitoring addresses.

OpenProject monitoring docs

Metrics exposing load and activity

The Prometheus exporter publishes Rails, ActiveRecord and Puma figures such as request rates, database activity and worker utilization. Those numbers show when your users work, how busy the instance is and when maintenance windows are safe to skip. Keep the exporter port, 9394 by default, off public interfaces and limit scraping to the Prometheus server.

Probes failing after authentication

Setting OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD can cause existing container health checks to fail, because they no longer send the credential. Before you enable it, update every liveness probe, Docker healthcheck and load balancer monitor to send the password, then confirm that the container reports healthy. Test the change in a staging instance first.

Liveness and alerting on one endpoint

The monitoring documentation does not recommend /health_checks/all as a liveness probe. Using one broad endpoint for restarts and paging means a slow mail server or backed-up worker can trigger a container restart. Assign /health_checks/default to liveness and route the specific checks, such as worker_backed_up, to alerts that notify people rather than restart services.

Single-node Prometheus storage

Prometheus local storage is not clustered or replicated, so a failed server loses its local history and alerting until it is rebuilt. Plan a second Prometheus instance or remote write to long-term storage if OpenProject alerts must keep working during host failures. Ask your monitoring team who owns the disk, backups and restore test for the Prometheus data directory.

Prometheus storage docs

Default 15-day retention

Prometheus keeps local data for 15 days by default, which may be too short for capacity reviews or for comparing OpenProject load across an upgrade. Set retention by time or size to match your review cycle and disk budget, and confirm that the retention window covers a full release cycle. Document the chosen value so auditors and engineers know how far back metrics can be queried.

Running Prometheus for OpenProject: storage, releases and alert routing

Prometheus keeps samples in a local time series database. Data is written into two-hour blocks, with a write-ahead log protecting the most recent samples, and the default retention is 15 days. Retention can be set by time or by size, so the decision is really about how far back your team needs to compare OpenProject request and Puma behavior, such as after an upgrade. The local store is not clustered or replicated, so the Prometheus docs say to manage it like any other single-node database.

  • Local retention window: Set the retention period to match your review cycle, and confirm that disk capacity covers it at your scrape volume.
  • Single node risk: A failed Prometheus server means a gap in history and no alerts until it returns, so plan a restart and recovery procedure.
  • Remote write: Remote write sends samples to an external long-term storage system if you need history beyond the local window or a second copy.
  • Remote read: Remote read lets Prometheus query that external store, which matters if dashboards should span both.
  • Storage ownership: Storage is an infrastructure cost you pay for directly, and any long-term backend adds its own operating work.

Check the configured retention, the disk headroom, and whether remote write targets are documented in your runbook before relying on OpenProject trend data for capacity decisions.

What to confirm for your OpenProject version and environment

The health check and metrics details in the OpenProject docs can change between releases, and they depend on how your instance is packaged and where it runs. Confirm each item below against the docs for your exact version and against your own environment before you write alert rules or probe configuration.

Exact metric names per release

The Prometheus exporter is enabled with OPENPROJECT_PROMETHEUS_EXPORT=true and uses Yabeda with ActiveRecord, Rails and Puma plugins on port 9394 by default. Metric names and labels come from those plugins and can differ between OpenProject releases. Scrape your running instance and list the series names before you write any recording or alert rule that depends on them.

Monitoring docs

Container health check and password setting

Setting OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD protects the health check endpoints, and the docs warn that this may break existing container health checks. Check whether your Docker or Compose health check sends the credential. If it does not, the container may be marked unhealthy after you change the setting, even though the application is working.

Puma and worker metrics for alerts

Alert rules need the Puma thread and worker signals and the background job backlog signal that matter for your load. Confirm which series your version emits for busy threads, queued requests and worker activity. Then test each alert against a controlled slowdown in a non-production instance so you know it fires as intended.

Kubernetes probe paths

Liveness and readiness probes should use the endpoint the docs recommend for that purpose, not the aggregate /health_checks/all endpoint. Confirm the path, the expected response code, the timeout and the period against your chart or manifests. Also check whether the probe must include the password credential once the endpoint is protected.

Network policy and scrape access

Prometheus must reach the exporter port and the health check endpoints from the network where it runs. Confirm the firewall rules, Kubernetes network policies and any reverse proxy path rules that sit between Prometheus and OpenProject. Decide whether the exporter is reachable only from the monitoring network and whether the scrape uses credentials.

Prometheus and Alertmanager versions

Choose a Prometheus line that is still receiving fixes for your operating period. Non-LTS minor releases stop receiving bug fixes after about six weeks, while the LTS line is supported for one year. Confirm the current release notes and whether your Alertmanager is clustered, because Prometheus should point at every Alertmanager instance rather than a load balancer.

Prometheus release cycle

Common questions about OpenProject health checks and Prometheus

Which OpenProject health check endpoint should a load balancer probe use?

Point the load balancer at /health_checks/default, which is the general-purpose check, and keep /health_checks/all out of liveness probes because the OpenProject monitoring documentation does not recommend it for that purpose. The default check is meant to answer whether the instance is up and serving, which is the question a load balancer needs answered. Confirm the exact behavior of each endpoint against the monitoring documentation for your release before you wire it into your probe configuration, and test the probe with a deliberately stopped container so you know how the load balancer reacts to a failure.

Should alerting use the worker_backed_up health check?

The worker_backed_up check reports a background job backlog, so it is a useful signal for alerting on stalled emails, hung project copies or delayed jobs, but it should not replace a liveness probe. A backlog can grow for reasons that are not outages, such as a large batch of jobs after an import, so alert on a sustained condition rather than a single failed reading. Pair it with the database and mail checks so that an alert tells the on-call engineer which subsystem is affected. Agree the threshold and the response with the team that runs OpenProject before you turn the alert on.

What does enabling the Prometheus exporter change in OpenProject?

Setting OPENPROJECT_PROMETHEUS_EXPORT=true turns on a Prometheus exporter based on Yabeda, with ActiveRecord, Rails and Puma plugins, listening on port 9394 by default. It adds an HTTP endpoint that Prometheus can scrape, so the instance starts exposing request, database and web server metrics that were not visible before. Treat that port as an internal interface: restrict network access to your Prometheus servers, because the metrics reveal details about load and application behavior. Check the monitoring documentation for the metric names in your release before you write dashboards or alert rules against them.

Can the health check password be skipped?

The password is optional, but skipping it leaves the health check endpoints open to anyone who can reach them, and that exposes information about the instance's internal state. Setting OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD protects the endpoints, but the monitoring documentation warns that it may break existing container health checks, so the probe definitions must send the credential too. Plan the change in a test environment, update every probe and monitor that calls the endpoints, and confirm that the container orchestrator still marks the service healthy after the change.

How much effort does a monitoring setup take, and what drives it?

The effort depends on four drivers: your team's experience with Prometheus and Alertmanager, whether you already run a Prometheus stack, how long you keep metrics, and how many alert rules you design. Prometheus stores data locally in two-hour blocks with a default retention of 15 days, and the storage documentation says local storage is not clustered or replicated, so long retention or high availability adds storage and operational work. Alertmanager adds grouping and silences, and running it highly available requires its cluster settings. Ask any partner for a quote that lists each of these components, the hours for setup, dashboards and alert tuning, and the ongoing review that follows.

Can our own team set up OpenProject health checks and Prometheus metrics?

A team with Linux, container and Prometheus experience can usually enable the health check protection and the exporter using the documented environment variables, and then add a scrape job and a few alert rules. The harder work is designing alerts that do not generate noise, deciding retention, securing the metrics port and keeping Prometheus itself patched, since its minor releases stop receiving bug fixes after six weeks. If nobody on the team has run Prometheus before, plan training or a short engagement for the design phase. Your team can judge the gap by listing who would own the alert rules, the storage and the upgrades after go-live.

How DeployOpen scopes monitoring for a self-hosted OpenProject

A fixed-scope monitoring agreement starts with a review of how OpenProject is deployed today, because the endpoints, protection and exporter settings depend on the install method, the reverse proxy, the container orchestration and the network path Prometheus will use. DeployOpen checks which health check paths the existing container health checks and load balancers call, confirms whether OPENPROJECT_PROMETHEUS_EXPORT is already set, and records where the instance and its workers run. The output of this review is a written list of endpoints to use for liveness, for alerting and for any dashboards, so the client agrees on those choices before anything is changed.

Next, DeployOpen configures the probes and the exporter inside the client's own infrastructure. That includes setting OPENPROJECT_HEALTH__CHECKS__AUTHENTICATION__PASSWORD where the client wants protected probes, updating the container health checks in the same change because the protection can break them, enabling the Yabeda-based exporter, and restricting the metrics port so only the Prometheus servers the client approves can reach it. Prometheus scrape configuration, retention settings and the Alertmanager connection are set up on the client's Prometheus host or cluster. Where the client already runs Prometheus or Alertmanager, DeployOpen works within that setup. Confirm with your team which of these components you already operate, because that decides how much of the work is configuration and how much is new infrastructure.

The engagement ends with alert rules and runbooks handed over to the client's operations team. Each rule is tied to a specific health check or metric, with a documented response, and the runbooks explain how to read the worker backlog and database checks during an incident. Ask any partner for the list of deliverables, the verification steps they run on the probes and the handover format before you sign. Ongoing tuning of alert thresholds and Prometheus storage sizing is usually handled through a retainer, so confirm whether that is in scope from day one.

How DeployOpen works on OpenProject monitoring

DeployOpen plans and builds monitoring for OpenProject inside your own infrastructure, starting with which health check endpoints drive liveness and which drive alerting, then the Prometheus exporter for Rails and Puma metrics. Each step is scoped in writing, tested against your deployment, and handed over with the runbooks your operations team needs.

How we scope

  • We inventory your OpenProject install method, reverse proxy and container orchestration to see which health checks you can reach.
  • The written scope names each endpoint in use, who may read it, and which probes and alert rules will be configured.
  • We confirm whether your Prometheus and Alertmanager run in your infrastructure and who owns their storage and retention.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We separate the liveness probe from alerting checks, so a single endpoint does not drive both decisions.
  • We set the health check password variable and test that existing container health checks still pass or are updated.
  • We enable the Prometheus exporter, confirm the port, and verify the ActiveRecord, Rails and Puma metrics are scraped.
  • We write alert rules and test them against induced failures in a non-production environment before go-live.

How we hand over

  • You receive the configuration, scrape targets, alert rules and endpoint inventory, documented for your team.
  • Runbooks explain what each health check endpoint reports and how to respond to each alert.
  • We walk your operations staff through the dashboards and verify they can reproduce a check result independently.
  • Handover includes a list of what your team must confirm in its own environment, such as storage sizing and retention.

How we support

  • Ongoing support, OpenProject upgrades and continuous testing are available as retainers after handover.
  • Upgrades to new OpenProject releases are followed by a re-check of endpoints, passwords and exporter behavior.
  • Retainers can cover periodic review of alert rules as your user count and workload change.
  • Ask any provider for the support hours, response commitments and upgrade responsibilities in the written quote.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.