Monitoring OX App Suite with Prometheus and Grafana

Plan Prometheus scraping of the OX App Suite middleware metrics endpoint, lock it down, and build Grafana dashboards and alerts for sessions, database pools, IMAP and HTTP latency.

On this page

Monitoring OX App Suite with Prometheus and Grafana: when teams need it

Prometheus scrapes the OX App Suite middleware metrics, and Grafana turns them into dashboards and alerts. Teams need this setup once a running OX App Suite v8 deployment on Kubernetes has enough users that slowness reaches the help desk before anyone sees it in the cluster. Without metrics, the first signal is usually a support ticket about slow mail or a calendar that will not load. With them, the operations team can ask concrete questions: are user sessions climbing faster than the middleware nodes can serve, is the database connection pool saturated, are IMAP calls to the mail backend getting slower, and is HTTP latency rising on one route or across the board. This topic covers the scraping, the endpoint protection and the dashboards that answer those questions. It is one part of day-two operations, alongside health probes, logging, leaver handling, webhooks and user moves between contexts, and each of those affects what the metrics mean.

Prometheus is licensed under Apache-2.0 and has no paid enterprise edition, so the cost of this work does not come from a license fee. It comes from the compute and storage that Prometheus and Grafana need, from the implementation effort to wire scraping, authentication and dashboards into your environment, and from the staff who keep alert rules, retention and upgrades current. Grafana is different: its enterprise features, such as SAML login and team sync, sit in a commercial edition, and its production setup needs MySQL or PostgreSQL rather than the SQLite default. Before you request a quote, confirm which Grafana edition you plan to run, where its configuration database will live, and whether your identity provider needs to reach Grafana through a supported method. These decisions shape both the one-time build and the recurring operating cost.

Decide early who owns the alerts. A metrics stack that nobody is paged by is not monitoring, so name the on-call group, the alert routes and the thresholds that matter for your user base before the first dashboard is built. Confirm with your Open-Xchange contact which middleware metrics your release exposes and how the metrics endpoint is protected in your cluster, since an unauthenticated endpoint can leak operational detail. Plan for the fact that Prometheus local storage is single-node and not replicated, so retention and any long-term storage choice belong in the design rather than an afterthought. The sections that follow walk through each of these steps in order.

How metrics flow from middleware to alerts

The flow starts at the middleware /metrics endpoint, which Prometheus reaches through service discovery or static configuration and pulls over HTTP. Samples land in Prometheus's local time series database, which is not clustered or replicated, so it can optionally forward them by remote write to external long-term storage. Grafana reads from Prometheus for dashboards, while Prometheus sends firing alerts to every Alertmanager instance in the cluster. The trust boundary around the metrics endpoint and the Grafana login is where to check that access is restricted.

Metrics flow from the middleware endpoint to dashboards and alert routing.

Which monitoring layout fits your team

This table compares four ways to run Prometheus and Grafana for OX App Suite metrics, covering when each fits, what it asks of your team, and where local storage limits apply. Read each row against your team's on-call model and retention needs, then confirm the details with your own environment before choosing.

LayoutWhen it fitsOperational burdenStorage and limits
In-cluster Prometheus with GrafanaA single platform team that owns the Kubernetes cluster and wants the fewest moving parts for a first deploymentYour team patches, upgrades, sizes and restarts both components and maintains scrape configuration by handLocal storage on one node, not replicated, 15-day default retention unless you change it
Prometheus operator-managed setupTeams that want scrape targets, rules and Alertmanager defined as Kubernetes resources and kept in GitLower day-to-day configuration effort, but your team still owns the operator, CRD versions and storage volumesStill single-node local storage per Prometheus instance, so retention and volume size must be planned explicitly
Remote write to long-term storageOrganizations that need metric history beyond the local retention window or want a separate store for audit or capacity reviewsAdds a second system to run, secure and back up, plus network and credential handling between the twoLocal storage remains the collection point and is not clustered, while the external store holds the longer history
Grafana CloudTeams that prefer a managed service for dashboards and storage and accept that metric data leaves your infrastructureLower hosting effort, but your team still configures scraping, agents, access and data-residency checksUsage-based pricing applies; confirm the data location, retention and tier limits with Grafana before sending OX metrics
Grafana EnterpriseOrganizations that require SAML login or SCIM provisioning for Grafana usersCommercial license and vendor relationship in addition to running Grafana itselfSAML, team sync, active sync and SCIM are available only in Grafana Enterprise and Grafana Cloud
Self-hosted Grafana with MySQL or PostgreSQLProduction dashboards and alerting that need a database backend and, for high availability, two or more active-active serversYour team runs the database, load balancer and alert deduplication configurationSQLite is not suitable for production; confirm the supported database versions in the Grafana installation docs

How to set up scraping and dashboards for OX App Suite

This sequence moves from confirming the middleware metrics endpoint and its authentication to a Prometheus scrape job, a Grafana instance backed by MySQL or PostgreSQL, provisioned dashboards and Alertmanager rules. The result is a monitoring stack your own team can review, reproduce and operate.

  1. Confirm the middleware metrics endpoint and its authentication

    Start by reading the App Suite 8 Operations Guide to confirm how the middleware exposes its Micrometer metrics on the /metrics endpoint in your release, and which authentication it expects. Record the pod or service address, the port, and whether the endpoint is reachable only inside the cluster. Check that you can fetch the endpoint from a debug pod with the credentials you intend to use. You are done when a authenticated request returns metrics text and an unauthenticated request is refused.

  2. Configure Prometheus scrape targets and service discovery

    Define a scrape job for the middleware pods, using Kubernetes service discovery where your Prometheus is deployed in the same cluster, or static targets where it is not. Set the metrics path, the scrape interval and the credentials or TLS settings you confirmed in the previous step, and keep secrets in Kubernetes Secrets rather than in plain configuration. Attach labels such as cluster, environment and middleware role so that dashboards can filter by node group. You are done when the Prometheus targets page shows every middleware instance as up and the expected series appear in a query.

  3. Choose retention and storage for Prometheus

    Decide how long metrics stay on the local Prometheus volume and how much disk that requires. Prometheus defaults to 15 days of retention, configurable by time or size, and stores data in two-hour blocks with a write-ahead log. Local storage is not clustered or replicated, so treat the volume like any single-node database with snapshots and a restore test. If you need longer history, plan a remote write target and confirm its availability and cost with the provider. You are done when the retention flags are set, the volume has measured headroom, and a restart keeps the existing data.

  4. Deploy Grafana in an HA-capable form with MySQL or PostgreSQL

    Deploy Grafana using its Helm chart or container image with an external MySQL 8.0 or later, or PostgreSQL 12 or later, database rather than the default SQLite, since the installation docs say SQLite does not scale for production. Plan two or more active-active instances behind a load balancer sharing that database, and confirm your team understands the alerting and Grafana Live limitations in high availability. Store the admin credentials and database password in a secrets manager. You are done when two instances answer behind the load balancer and a login made on one node is accepted on the other.

  5. Provision data sources and dashboards as code

    Define the Prometheus data source, dashboards and alerting resources as YAML or JSON provisioning files that load at startup, then keep them in version control. Use a Git-based workflow or Terraform where your team already operates one. Disable manual edits to provisioned dashboards so that changes go through review. Restart one Grafana instance and confirm the data source and dashboards reappear without manual steps. You are done when a fresh deployment from the repository produces the same data sources and dashboards as the running environment.

  6. Build panels for sessions, database pools, IMAP and HTTP latency

    Create panels for the four areas that matter most for day-two operations: active and total sessions, database connection pool usage and wait behavior, IMAP connection and error behavior for the mail back end, and HTTP request latency by route. Use PromQL to select series by the labels defined in the scrape job and set sensible percentile views for latency. Confirm each metric name against the metrics your middleware version actually exposes, since names can change between releases. You are done when every panel shows live data for each middleware role and the values match a spot check on the endpoint.

  7. Add Alertmanager rules and verify notification routing

    Write alert rules for conditions such as scrape failures, pool exhaustion, sustained latency increases and high session counts, with thresholds your operations team agrees on from the baseline you observed. Deploy Alertmanager in a cluster configuration if you need high availability, and point Prometheus at every Alertmanager instance rather than a load balancer. Configure grouping, inhibition and silences so that one failure does not produce a flood of notifications. Test each rule by triggering a safe condition in a lab environment. You are done when each test alert reaches the intended receiver once, and a silence suppresses it as expected.

Which metrics to chart for sessions, database pools, IMAP and HTTP latency

Start from the signals that tell you whether users can work and whether the platform has headroom, then derive each panel from the Micrometer metric names your middleware actually exposes. Confirm every metric name against your deployed middleware version before writing a query, because names, tags and units can change between releases. Export the /metrics output from one middleware pod, search it for session, connection pool, IMAP and HTTP request families, and record the exact names in a short catalog next to each panel. For capacity, chart active sessions against the pool of workers that serve them, database connection pool usage against its configured maximum, and IMAP connection or command latency to the mail backend. For incidents, chart HTTP request latency by route group and error status, since a slow database pool and a slow mail backend usually show up first as rising request latency. Explain each panel to the on-call engineer in one sentence so the dashboard answers a question rather than displaying a number.

Prometheus aggregates across pods with PromQL, so decide the aggregation before building panels. Summing a counter across all middleware pods gives platform totals, while sum by (pod) or max by (pod) shows a single node running hot, which is usually the first sign of uneven load. Use rate() on counters and histogram_quantile() on histogram buckets rather than reading raw totals, and keep the time window consistent across panels so they can be compared during an incident. Prometheus values reliability over precision, so treat quantiles and rates as estimates and set alert thresholds with margin. Avoid high-cardinality labels such as user IDs, mailbox addresses, context IDs, session tokens or raw URLs with identifiers in them, because each unique label combination creates a separate time series and can exhaust memory and storage. Keep labels to bounded values such as pod, route group, status class and pool name. Test each new label on a lab cluster and count the series it produces before it reaches production.

Securing the metrics endpoint and the monitoring stack

Metrics, dashboards and alert routing reveal how your mail platform behaves, including session counts, pool state and internal hostnames. Each card below covers one layer that needs a deliberate access decision before the monitoring stack goes live.

Require authentication on the metrics endpoint

The middleware /metrics endpoint exposes operational detail that helps an attacker map your deployment. Confirm that the endpoint requires credentials or is reachable only from the Prometheus scrape path, and test it from outside the cluster and from an unauthenticated pod. Record which scrape identity is used, where its secret is stored and who can rotate it. Treat a 200 response from an unauthorized client as a finding.

Prometheus security model

Restrict scrape paths with network policy

Use Kubernetes NetworkPolicy so that only the Prometheus namespace or pods can reach the middleware metrics port, and only Prometheus can reach the exporters. Deny ingress to the metrics port from the ingress controller, so the endpoint is never routed through the public hostname. Check the policy with a test pod in an unrelated namespace. Confirm that your CNI enforces NetworkPolicy, because a policy object that is not enforced gives no protection.

Keep Prometheus and Alertmanager private

Prometheus has no built-in user authentication, and its web UI and API can run arbitrary PromQL queries against all stored data. Do not publish the Prometheus or Alertmanager services through the public ingress. Place them behind your internal access layer, and grant access to operators through SSO where the platform supports it. Check that Alertmanager receives only the internal addresses of its Prometheus instances.

Alertmanager docs

Harden Grafana cookies and content policy

Enable secure and SameSite cookies, a Content Security Policy and Trusted Types in Grafana's security settings, and check the resulting headers in a browser. Set the domain verification option so that requests with an unexpected host header are refused, which guards against DNS rebinding. Test that dashboards still load after the policy is applied, since panel plugins are the usual cause of CSP breakage.

Grafana hardening docs

Hide version details from anonymous users

Grafana can show its version to unauthenticated visitors, which tells an attacker which known vulnerabilities to try. Turn off version disclosure on the login page and in API responses served to anonymous clients, then confirm it from a private browser session. Do the same review for Prometheus and Alertmanager status pages, which list build information and configuration on their UI endpoints.

Patch Grafana and Prometheus on a schedule

Both projects publish frequent patch releases, so the monitoring stack needs an owner and a regular upgrade window like any other production service. Track the Grafana patch cadence and the Prometheus LTS line, and decide which branch each component follows before go-live. Rehearse upgrades in a non-production environment, and keep the Helm values and dashboard provisioning files in version control so a rebuild is repeatable.

Latest Grafana patch
13.2.4
Grafana upgrade guidance

Questions buyers ask before monitoring OX App Suite

What drives the cost of monitoring OX App Suite with Prometheus and Grafana?

The cost comes from four places: the infrastructure that runs Prometheus, Alertmanager and Grafana, the storage that holds metrics for your chosen retention, the implementation work, and the people who operate the stack afterward. Prometheus itself is Apache-2.0 licensed with no paid enterprise edition, so there is no license fee for the project. Grafana's edition matters: SAML, team sync and SCIM provisioning are only in Grafana Enterprise and Grafana Cloud, so an identity requirement can change the bill. Ask any partner for a quote that separates one-time build work from recurring infrastructure, upgrades and on-call effort.

How long does a Prometheus and Grafana build for OX App Suite take?

Duration depends on scope rather than on a standard number of days. The main variables are how many middleware nodes and database pools need scraping, whether metrics must be protected by authentication, how many dashboards and alert routes are required, whether Grafana runs in high availability, and whether dashboards are delivered as code. A single-cluster setup with one Grafana instance and a basic alert set is a much smaller job than a high-availability Grafana with SSO, remote storage and documented runbooks. Ask for a written scope with deliverables and milestones before agreeing on timing.

What do we need to provide before the monitoring work starts?

Plan to provide cluster access in the environment where OX App Suite runs, with rights to create monitoring namespaces, service monitors and network policies. Grafana needs an identity decision: which provider will sign users in, and whether Grafana will use generic OAuth, LDAP or SAML, which depends on your edition. You also need named alert recipients, their escalation paths, and the on-call hours they cover. Finally, confirm where metric storage will live, what retention you require, and who owns the Alertmanager receivers such as email, chat or paging systems.

Can our internal team set this up without a partner?

Yes, if your team already runs Kubernetes, Prometheus-style scraping and Grafana, and has time to own the design. The skills that are easy to underestimate are securing the metrics endpoint, writing PromQL alert rules that do not flood on-call, sizing storage, and keeping Grafana high availability free of duplicate alert notifications. Prometheus runs as a single-node store that is not clustered or replicated, so someone must plan backups, restore tests and upgrades. A partner is most useful when the team needs the build finished on a fixed schedule or wants a documented handover.

How do retention and remote storage change the monitoring design?

Prometheus keeps data locally in two-hour blocks, and its default retention is 15 days, configurable by time or size. Longer history means more disk on a single node, larger backup sets and slower queries over wide ranges. If you need to keep metrics longer than local disk allows, remote write can send samples to an external long-term storage system, and remote read can query it back. That adds a component to operate, its own cost and its own failure modes. Decide retention against audit, capacity planning and incident review needs before choosing a storage design.

Does the metrics endpoint need to be secured, and how?

Yes. The middleware metrics endpoint exposes operational detail, so it should not be reachable from untrusted networks or left unauthenticated. Prometheus is designed to be deployed inside a trusted network, so scraping should use network policies, mutual TLS or authenticated scrape configuration, and the endpoint should be reachable only by the monitoring namespace. Grafana's hardening guidance also recommends requiring authentication for its own metrics endpoint. Confirm the exact configuration options for your OX App Suite version with Open-Xchange documentation before you publish any scrape path.

What ongoing work follows the initial build?

Expect recurring work in four areas: upgrades, alert tuning, capacity review and access management. Prometheus minor releases stop receiving bug fixes after about six weeks, so you either follow the cycle or choose a long-term support line, which receives fixes for one year. Grafana publishes patch releases at least monthly and minor releases every other month, each with a limited support window. Alert rules need review after every OX App Suite upgrade because metric names and labels can change. Ask whether your engagement includes these tasks or whether they will sit with your own platform team.

Keeping Prometheus and Grafana current after go-live

Plan the upkeep of the monitoring stack as its own workstream, because Prometheus and Grafana do not move on the OX App Suite upgrade schedule. Prometheus starts a new minor release cycle every 6 weeks, and a minor release generally stops receiving bug fixes after those 6 weeks. For a production monitoring stack, the practical choice is the long-term support line. The current LTS line is 3.13, released July 1, 2026 and supported until July 31, 2027, while LTS 3.5 reached end of life on July 31, 2026. Confirm which line your team has pinned in the Prometheus image or Helm chart, and check the Prometheus release cycle page when you set your patch review cadence.

Grafana follows a different rhythm. Its upgrade guidance describes major releases once a year in April or May, minor releases every other month and patch releases at least monthly, with each minor release supported for 9 months and the last minor of a major version for 15 months. Assign an owner to track these windows and to apply security patches promptly, including the Grafana instance, its database backend and any plugins in use. Because Grafana dashboards and alert rules are often edited in the UI, keep them provisioned from files or Git so that a version upgrade can be replayed and compared instead of reconstructed from memory.

Every OX App Suite upgrade should trigger a short regression check on the monitoring side. Metric names, labels and the middleware /metrics output can change between releases, so a dashboard that worked last quarter can show empty panels or an alert can silently stop firing. Re-run the queries behind your session, database pool, IMAP and HTTP latency panels against the new version, confirm the alert rules still evaluate, and send a test notification through the full path. Track Alertmanager cluster health as well: Prometheus should point at every Alertmanager instance, so check that each member is reachable and that the cluster peers agree, using the metrics Alertmanager exposes for its cluster state. Confirm the exact metric names and cluster settings against the Alertmanager documentation for the version you run.

How to verify the monitoring works before handover

This sequence shows that every scrape target is reporting, that a failure reaches a person through Alertmanager, that dashboards and provisioning behave after a reload, and that the client's own team can read the signals under load before the stack is handed over.

  1. Confirm every scrape target is up

    DeployOpen opens the Prometheus targets view and checks that each middleware pod, the Redis and MariaDB exporters, and any Kubernetes or Istio job appear as up with a recent last scrape. Scrape errors are traced to the authentication setup on the metrics endpoint, the service discovery labels or the network policy between namespaces. The step closes when the target list matches the inventory agreed in the scope, with no target stuck in an error state for a full scrape cycle.

  2. Trigger a failing scrape to test alerting

    DeployOpen stops or blocks the scrape of one non-production target, or changes its credentials in a test copy, and waits for the alert rule covering the 'target down' condition to move from pending to firing. The team then confirms the alert carries the expected labels, severity and runbook link. The step closes when the alert appears in Prometheus and in Alertmanager, and the test is reversed and the alert resolves.

  3. Check Alertmanager routing, grouping and silences

    DeployOpen sends a test alert with each label set used in production and confirms it reaches the correct receiver, such as the on-call channel for critical severity and the team queue for warnings. The team also creates and expires a silence to confirm it suppresses only the matching alerts, and checks that inhibition rules hide symptom alerts when a root cause fires. Prometheus is confirmed to point at every Alertmanager instance. The step closes when each route has been tested end to end and the silence behaves as written.

  4. Verify Grafana provisioning reloads cleanly

    DeployOpen changes one provisioned data source setting and one dashboard file in the Git repository, applies the change through the normal pipeline, and confirms Grafana loads the new version on restart or reload. It then checks that a manual edit in the UI is either blocked or clearly marked as overwritten by provisioning, depending on the chosen setup. The step closes when the reloaded dashboard and data source match the repository and the client's administrators can reproduce the procedure.

  5. Confirm dashboards show session, pool and latency signals

    DeployOpen checks that the dashboards for active sessions, database connection pools, IMAP connection and HTTP latency return data for the middleware and mail backend, and that the time ranges and variables select the right namespace and pod. Panels that show gaps are traced to scrape intervals, retention or label mismatches. The step closes when each panel has been compared against a known value, such as a count of logged-in test users or a manual query result.

  6. Run a load test while the client team watches

    DeployOpen runs an agreed load profile against a non-production environment that mirrors production, using the client's own test accounts. The client's operations staff watch the dashboards and alerts during the run, state what they expect to see, and record any alert that fires or fails to fire. The test checks whether the signals respond to real load and whether thresholds are too sensitive or too quiet. The step closes when the team has reviewed the results together and agreed on threshold changes, which DeployOpen applies and retests.

  7. Hand over runbooks and access records

    DeployOpen delivers the list of verified targets, alert rules, receiver tests, provisioning procedure and dashboard guide, along with the record of each test and its outcome. The client's team confirms who can edit alert rules, silences and dashboards, and how metrics endpoint credentials are stored and rotated. The step closes when the client signs off the handover document, and open items are logged with owners so nothing depends on the implementation team remaining available.

How DeployOpen scopes, delivers and supports this work

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For OX App Suite monitoring, that means agreeing in writing which middleware metrics, scrape paths, dashboards and alerts are in scope before any configuration changes are made in your cluster.

How we scope

  • Written scope lists the OX App Suite middleware instances, namespaces and metrics endpoints to be scraped
  • Scope names the Prometheus and Grafana deployment model, storage and retention choices, and who owns each
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts

How we build

  • Metrics scraping is configured and the /metrics endpoint is secured before dashboards are built
  • Dashboards and alert rules cover sessions, database pools, IMAP and HTTP latency as agreed in scope
  • Alert routing and dashboards are tested against planned failure conditions in a non-production environment first

How we hand over

  • Delivery includes configuration as code, dashboard definitions and a runbook for each alert
  • Documentation records scrape targets, authentication settings, retention and the owner of every alert route
  • Your team receives a walkthrough so operators can change thresholds and add panels without outside help

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Retainers can cover Prometheus and Grafana version upgrades, dashboard maintenance and alert tuning
  • Support scope and response arrangements are confirmed in writing with your team before the retainer starts

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.