Monitoring Temporal with Prometheus and Grafana before workflows stall
A self-hosted Temporal cluster can look healthy while workflows quietly fall behind. Task queues back up when workers are short of capacity, activities slow down before they time out, and failures pile up in one namespace while the rest look fine. The operator's question is how to see backlog, latency and failures early enough to act. The answer is to treat Temporal as one more service in your metrics stack: the Temporal Server, your client applications and your workers all expose metrics that Prometheus can collect and query, Grafana can chart, and Alertmanager can route to the right on-call team. This integration is assembled from those documented pieces rather than from a dedicated Temporal connector, so the design work sits with your team or implementation partner: which endpoints to scrape, which series matter for each Temporal role, and who receives which alert.
Prometheus is licensed under Apache-2.0, and there is no paid enterprise edition of the project itself. The software cost is therefore zero, and the real costs are the infrastructure that runs Prometheus, Grafana and Alertmanager, the storage for metric history, and the people who build the dashboards, tune alert thresholds and respond to pages. Prometheus keeps its local time series data on a single node that is not clustered or replicated, and its default retention is 15 days, so decide early whether a remote write target is needed for longer history. Alertmanager can run as a cluster for high availability, and Prometheus should be pointed at every Alertmanager instance rather than at a load balancer. Confirm these choices against your own monitoring standards before you size anything.
Before the first dashboard, agree on the failure modes the monitoring must catch: a growing task queue backlog, rising workflow or activity latency, and a spike in failed or timed-out executions. Each one maps to a different signal and a different owner, so write the alert routing down before you write the alert rules. Check that the Temporal Server metrics endpoint and the worker and client metrics endpoints are reachable from your Prometheus servers without exposing them to the public internet, since the Temporal deployment guidance expects services on trusted internal networks only. Then confirm the exact metric names and labels for your Temporal Server and SDK versions in the release documentation before writing queries, because names change between releases and an alert built on a missing series stays silent.
What you need before you scrape your first Temporal metric
Metrics only help if every piece in the path is a supported version and reachable from where Prometheus runs. Check the Temporal Server line, the Prometheus and Grafana versions, the network path to each endpoint and the alert route before you write the first scrape configuration.
Temporal Server version line
Pick the minor line you will run and move to its latest patch before you enable metrics. Temporal Server v1.32.1 was published on October 8, 2026, and patch releases v1.31.4 and v1.30.8 followed on October 12, 2026 for earlier minor lines. Upgrades should go one minor version at a time, so confirm your current version and the release notes for any schema step before you change the scrape targets. Metric names can shift between lines, so write your dashboards against the version you actually run, and record the server version in your runbook next to the scrape configuration.
Temporal releasesPrometheus LTS or current line
Choose between the long-term support line and the current minor line. The LTS line receives bug fixes for one year, and the current LTS line is 3.13, supported until July 31, 2027. A current minor release stops receiving bug fixes after about six weeks, so a current-line deployment needs a planned upgrade cadence. Confirm the version your platform team can patch on schedule before you pin it.
Prometheus release cycleGrafana version and production database
Run a Grafana version that is still inside its support window, and plan for a production configuration database. Grafana stores its configuration in SQLite 3 by default, but its installation docs say SQLite does not scale for production, so use MySQL 8.0 or later or PostgreSQL 12 or later. High availability needs two or more active-active servers sharing that database behind a load balancer. Confirm the database version, backups and who owns the dashboards and data source definitions before you build anything.
Grafana install docsNetwork path to metrics endpoints
Prometheus must reach the metrics endpoints of every Temporal Service role and every worker. Temporal services should run on hosts that are not reachable from the public internet, so the scrape path must stay on trusted internal networks. Map which hosts expose metrics, open only the required ports from the Prometheus host, and confirm that the endpoints are not exposed through an ingress or load balancer that serves other traffic.
Temporal deployment docsMetrics endpoint authentication
Decide who may read metrics before you expose them. Prometheus has no paid edition and its security model assumes trusted network access to scrape endpoints, so authentication and network controls are your responsibility. Grafana's hardening guidance recommends requiring authentication for its own metrics endpoint. Confirm which scrape paths will be protected, how Prometheus presents credentials and who can query the metrics store directly.
Prometheus security modelAlertmanager and notification channel
Alert rules do nothing until Prometheus sends firing alerts to Alertmanager, and Alertmanager sends them to a person or system. Run Alertmanager as a cluster if you need high availability, and point Prometheus at every Alertmanager instance rather than a load balancer. Confirm the on-call route, the receiver your team uses, and who silences alerts during planned Temporal upgrades.
Alertmanager docsHow to configure the scrape, dashboards and alerts in sequence
This sequence takes a self-hosted Temporal deployment from exposed metrics to a monitored, alerting setup. Each step depends on the one before, so the operator confirms data is flowing before dashboards and alerts rely on it. The result is Prometheus, Grafana and Alertmanager showing backlog, latency and failures across Temporal Service, workers and clients.
Enable the Temporal Service metrics endpoints
The platform engineer enables the metrics endpoint for each Temporal Service role using the settings in the self-hosted deployment documentation for the chosen method. For Kubernetes, confirm the Helm chart is version 0.73.1 or later when running server images 1.30 and later, then record the port and path for each service. Apply the configuration and confirm each endpoint is listening. Check: from a host inside the cluster network, request the metrics path for the frontend, history and matching services and receive plain-text metric output from each one.
Expose SDK client and worker metrics
The application team enables metrics in each worker and client process using the Temporal SDK for its language, so task backlog, task latency and workflow or activity failures reach Prometheus. Agree the listen address and label set with the platform team so each worker pool can be identified by task queue and deployment. Confirm the metric names for your SDK version in its documentation, and keep these endpoints on internal networks only. Check: on a worker host, request the local metrics endpoint and confirm task queue labels appear in the output.
Write the Prometheus scrape configuration
The monitoring owner installs Prometheus from the 3.13 long-term support line, which receives bug fixes for one year, and writes a prometheus.yml with one scrape job per Temporal Service role and one per worker and client group. Use static targets for small fixed hosts, or Kubernetes service discovery where pods change. Add environment and cluster labels so dashboards can filter. Check: open the Targets page in the Prometheus UI and confirm every expected instance shows as UP, then run the PromQL query up and compare the count with your inventory.
Set retention and storage for metrics
The monitoring owner sets retention limits by time or size, since the default retention is 15 days and the choice drives disk sizing. Local Prometheus storage is a single node that is not clustered or replicated, so it should be managed like any other single-node database, with disk alerts and backups of the data directory. For history beyond the local window, configure remote write to an external long-term store. Check: restart Prometheus with the new settings and confirm the storage status reports the configured retention and disk use is trending as expected.
Provision the Grafana data source and dashboards as code
The Grafana administrator installs a current 13.x release and defines the Prometheus data source and the Temporal dashboards in provisioning YAML or JSON files loaded at startup, so the setup can be reviewed and rebuilt. Store the files in Git and decide whether Git Sync or Terraform will manage them later. For production, the Grafana configuration database should be MySQL or PostgreSQL. Check: restart Grafana, run the data source test, and confirm the provisioned dashboards appear in their folder with backlog, latency and failure panels showing data.
Define alert rules and route them through Alertmanager
The on-call owner writes Prometheus alert rules for task backlog growth, task latency and workflow or activity failure rates, with thresholds set from baselines the application teams review. Alertmanager groups, inhibits and silences these alerts before routing them to receivers. For high availability, run Alertmanager as a cluster using its cluster flags and list every instance in Prometheus's configuration so each one receives alerts. Check: validate the rule files with promtool check rules, then trigger a test alert and confirm it reaches the intended on-call channel.
Wire health checks and lock down endpoints
The platform team adds health checks for the Temporal services and Grafana, then restricts access to the monitoring stack. Grafana's security hardening guidance recommends requiring authentication for its metrics endpoint, using secure and SameSite cookies, and hiding the version from unauthenticated users. Temporal services should run on hosts that are not reachable from the public internet. Check: request the Grafana metrics endpoint without credentials and confirm it is refused, then confirm the Temporal health checks respond from the monitoring network and fail from outside the trusted network.
How metrics move from Temporal to Grafana and on-call
The flow starts with Temporal Service pods, workers and clients, which expose metrics inside the trust boundary. Prometheus pulls those endpoints through service discovery or static configuration, evaluates alert rules, and hands firing alerts to Alertmanager, which groups and routes them to on-call. Grafana reads Prometheus for dashboards and never scrapes Temporal directly. Check that every metrics endpoint is reachable only from trusted networks, and that Prometheus targets every Alertmanager instance.
Metrics are pulled inside the internal network, then alerts route to on-call while Grafana reads Prometheus.
Which Temporal signals show backlog, latency and failures
Operators need signals from three places: the worker side, the Temporal Service side and the application side. On the worker side, the most important early warning is task queue backlog, meaning tasks waiting for a poller, and the related schedule-to-start latency, which shows how long a task sits in the queue before a worker picks it up. A rising backlog with steady worker counts usually means workers are too few, too slow or are stuck, and it appears well before a workflow visibly stalls. On the Service side, watch request latency and error rates for the frontend and history services, since these show whether the cluster itself is struggling with persistence or load. Application-side signals, such as workflow and activity failure counts and retry activity reported by clients and workers, show whether the code is failing even when the infrastructure looks healthy.
Metric names and label sets change between releases, so each name in your dashboards and alert rules must be confirmed against the Temporal metrics reference for the exact server and SDK versions you run. Check names after every upgrade, since a renamed series can leave an alert silently inactive. Ask your platform owner to record which metrics each alert depends on so that version changes are reviewed as part of the upgrade plan, and do not copy alert thresholds from a vendor example or another team's cluster.
Thresholds must be set per environment and per task queue. A backlog that is normal for a batch queue may be an incident for a payments queue, and latency targets depend on your workload, worker capacity and persistence sizing. Start with baselines collected under real load in a non-production environment, agree the thresholds and owners in writing, and review them after each traffic change. Confirm with your Temporal support or documentation team which signals the vendor expects operators to alert on, so that the first alerts you build match the failure modes Temporal documents.
How Temporal signals map to dashboards, alerts and owners
This table links each monitoring signal category to its source component, the Prometheus job that scrapes it, the Grafana panel type, the alert condition and the team that should respond. Exact metric and label names are items to confirm against the Temporal and Prometheus docs before you build dashboards. Use it as a starting map for agreeing ownership before alerts go live.
| Signal category | Source and scrape job | Grafana panel and alert condition | Owning team |
|---|---|---|---|
| Service health | Temporal Server frontend, history, matching and worker services; scrape job per service (confirm job names in your Helm values) | Stat or state-timeline panel for service up status; alert when a service stops reporting for a sustained period | Platform engineering |
| Task queue backlog | Matching service task queue metrics (confirm exact metric names in the Temporal metrics reference) | Time-series panel per task queue; alert when backlog grows steadily while worker count is flat | Application team owning the workers |
| Schedule-to-start latency | Matching or SDK task latency histograms (confirm metric and label names) | Heatmap or percentile panel; alert when high percentile latency exceeds the threshold agreed for each queue | Application team and platform engineering together |
| Workflow and activity failures | SDK client and worker metrics exposed on each worker's metrics endpoint (confirm scrape path and metric names) | Time-series panel of failure rate by workflow type; alert on a rising failure ratio, not single events | Application team owning the workflow code |
| Persistence errors and latency | History and persistence metrics from the Temporal Server (confirm names for your persistence store) | Panel per persistence operation; alert on sustained error rate or rising latency from the database | Database or platform team |
| Worker health and availability | Worker pod or process metrics plus Kubernetes status from the cluster monitoring stack | Table of workers by task queue with restart count; alert when a queue has zero active pollers | Application team with on-call rotation |
| Prometheus and Grafana themselves | Prometheus self-metrics and Grafana internal metrics (confirm endpoints and that metrics auth is enabled) | Stat panels for scrape failures and rule evaluation errors; alert when scraping of Temporal targets stops | Observability or platform team |
| Alert routing | Alertmanager receiving alerts from Prometheus (point Prometheus at every Alertmanager instance) | Not a panel; verify routes by sending a test alert and confirming the named receiver gets it | Observability team with named on-call owners |
How to keep metrics endpoints and dashboards locked down
Metrics endpoints and dashboards expose workflow volumes, queue depths, namespace names and service topology, which is enough for an attacker to map your Temporal deployment. The cards below cover network placement, scrape access, Grafana authentication and hardening, identity choices by edition, and keeping sensitive data out of metric labels.
Keep Temporal services off the internet
The Temporal deployment docs say Temporal services should run on hosts that are not reachable from the public internet, with network access restricted to trusted internal networks. Confirm that the Temporal frontend, history, matching and worker metrics ports are reachable only from your monitoring network and approved workers. Check this from outside your network, not only from the configuration files, because a permissive security group or ingress rule can undo an otherwise sound design.
Temporal deployment docsAuthorize scrape access to Prometheus
Prometheus pulls metrics over HTTP from every target it scrapes, so anyone who can reach a target's metrics port can read its data. Follow the Prometheus security model: restrict who can reach the Prometheus server, its scrape targets and its management endpoints, and put TLS and authentication in front of any endpoint that leaves a trusted network. Verify that the Alertmanager and remote write endpoints are also restricted, since they carry the same operational detail.
Prometheus security modelRequire authentication on Grafana metrics
Grafana exposes its own metrics endpoint, and the Grafana security hardening guidance recommends requiring authentication for it. Configure the metrics endpoint so unauthenticated requests are refused, and confirm the endpoint is not published through a public load balancer or ingress. Test it with an unauthenticated request from the network segment where Prometheus runs and from outside, then record the result as evidence.
Grafana hardening docsApply Grafana security hardening settings
The hardening guidance also covers secure and SameSite cookies, a Content Security Policy, Trusted Types, hiding the Grafana version from unauthenticated users and domain verification against DNS rebinding. Set these in the Grafana configuration file, version them in your Git repository with the rest of your provisioning, and review them on each upgrade, because defaults and recommended values can change between releases. Ask the operator who maintains Grafana to show the effective values from a running instance.
Choose identity features by Grafana edition
Generic OAuth, Entra ID, Okta, GitHub, GitLab, Google OAuth, LDAP, auth proxy and JWT are available in all editions, according to the Grafana authentication docs. SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud. If your identity policy requires SAML or SCIM, confirm the edition and licence cost with Grafana before design work starts, and do not assume an open-source build can meet that requirement.
Grafana authentication docsKeep personal and payload data out of labels
Prometheus labels become part of every series identifier and are stored and queried by many people, so a label containing a workflow ID, customer name, email address or payload fragment spreads sensitive data into dashboards, alert notifications and long-term storage. Use bounded labels such as task queue, namespace, operation and status. Review dashboard panels and alert annotations for the same problem, and confirm with your privacy lead which fields count as personal data in your jurisdiction.
Why Temporal dashboards go blank or alerts stay silent
This table lists the failures that most often leave Temporal dashboards empty or alerts quiet, with the likely cause and the fix for each. Read each row as a checklist item to verify in your own environment before the first production alert rule goes live. The main takeaway is that most blank panels come from scrape configuration, storage sizing or version mismatches rather than from Temporal itself.
| Failure | Likely cause | Fix |
|---|---|---|
| Targets show as down | Network policy blocks Prometheus from reaching Temporal metrics endpoints, or the scrape port does not match the service | Confirm the metrics port for each Temporal service and worker in your deployment, allow the Prometheus network path, and check target status in the Prometheus UI |
| Short spikes never appear | Scrape interval is longer than the length of the backlog or latency spike being investigated | Shorten the scrape interval for Temporal targets after confirming the load it adds, and use rate and histogram queries over a window that fits the spike |
| Storage fills unexpectedly | Default 15 day local retention was not sized against series count and sample rate | Set retention by time or size to match disk capacity, and send long-term data to external storage through remote write |
| Monitoring stops during an outage | A single Prometheus instance is the only collector, so its failure leaves no metrics or alerts | Run a second Prometheus that scrapes the same targets, and confirm which instance owns each alert rule |
| Duplicate pages or emails | Several Grafana or Alertmanager instances each send the same notification | Configure Alertmanager clustering and point Prometheus at every Alertmanager instance, and set Grafana alerting for high availability as documented |
| Dashboard panels go empty after a server upgrade | Metric names, labels or histogram buckets changed between Temporal Server versions, so queries no longer match | Compare series names on a test cluster before upgrading, update queries and dashboard variables, and version dashboards with provisioning |
| Metrics missing after a Helm change | Helm chart versions below 0.73.1 do not work with server images 1.30 and later, so services may not deploy as expected | Pin the chart to 0.73.1 or later for server images 1.30 and later, and confirm the deployed services and their metrics endpoints after each change |
Questions teams ask before building Temporal monitoring
What drives the cost and effort of a Temporal monitoring build?
The main drivers are how much monitoring infrastructure already exists, how many Temporal Service clusters and worker fleets need coverage, and how many dashboards and alert routes your operators must maintain. Prometheus is open source under Apache-2.0, so there is no license fee for the project itself. Costs come from the servers or Kubernetes capacity that run Prometheus, Alertmanager and Grafana, the storage that holds metrics, the Grafana database, and the people who design, implement and run the setup. Ask any quote to separate one-time work (scrape configuration, dashboards, alert rules, runbooks) from recurring work (upgrades, rule tuning, on-call review, storage growth).
How long does Temporal monitoring take to set up with existing Prometheus and Grafana?
Duration depends mainly on whether your team already runs Prometheus, Alertmanager and Grafana with authentication, retention and alert routing in place. If those exist, the work is mostly scrape targets for Temporal Service, client and worker metrics, dashboards for backlog, latency and failures, and alert rules tied to your runbooks. If they do not exist, the build also covers hosting, high availability for Alertmanager, and a production Grafana database. No fixed timeline is supplied for this work. Confirm the duration against your environment, the number of namespaces and task queues, and the number of teams who will use the dashboards.
What does the work need from our team?
You need named owners for the platform, the Temporal Service, and each worker fleet, plus access to the Kubernetes or host environment where Prometheus, Alertmanager and Grafana will run. Your team should be able to explain which signals matter to each service: task queue backlog, schedule-to-start and start-to-close latency, workflow and activity failures, and worker availability. Operators also need to agree on who receives each alert and what action it triggers. Expect review sessions where your engineers confirm metric names and labels against the versions you actually run.
Can our team build Temporal monitoring without outside help?
Yes, if your team already operates Prometheus and Grafana and has engineers who understand Temporal workers and task queues. The Prometheus project and the Grafana documentation describe the core setup, and Grafana supports provisioning of data sources, dashboards and alert resources as files. The harder parts are sizing scrape intervals and storage, designing alerts that avoid noise, securing the Grafana instance, and keeping dashboards in step with Temporal and Grafana releases. Grafana's release cadence means minor releases arrive roughly every other month, so someone must own upgrades.
How do Prometheus retention and remote storage affect planning?
Prometheus stores data in a local time series database in two-hour blocks, and its default retention is 15 days, configurable by time or size. Local storage is not clustered or replicated, so you should back it up and manage it like any single-node database. If you need longer history for capacity reviews or incident analysis, remote write can send samples to external long-term storage. That choice adds a second system to size, secure and pay for. Decide retention per signal before building dashboards, because alert thresholds and capacity trends depend on the window you can query.
Does Temporal Cloud change the monitoring approach?
Yes, the data path changes. With self-hosted Temporal, you scrape the Temporal Service and your workers directly, so you own the metrics endpoints, network access and retention. Temporal Cloud is a managed service, so the monitoring you build focuses on the client and worker side and on whatever metrics the managed service exposes to you. Confirm with Temporal which metrics are available for your Cloud namespaces and how they are accessed before designing scrape jobs. Your worker monitoring plan stays largely the same either way.
What should we confirm about security and access to dashboards?
Confirm who can reach Prometheus, Alertmanager and Grafana, because metrics often reveal workflow types, queue names and volumes. Grafana's security hardening guidance recommends requiring authentication for the metrics endpoint and hiding the version from unauthenticated users. For SSO, Grafana documents generic OAuth, Entra ID, Okta and similar options in all editions, while SAML and SCIM provisioning are listed only for Grafana Enterprise and Grafana Cloud, so confirm which edition your organization needs. Keep the Temporal Service off public networks, as its deployment documentation advises.
Keeping the monitoring stack current after go-live
Monitoring stays useful only while its components remain supported, so the first upkeep decision is which Prometheus release line to run. Prometheus starts a new minor release cycle every 6 weeks, and a minor release generally stops receiving bug fixes after those 6 weeks. Teams that want a longer window should run the long-term support line instead, which receives bug fixes for one year. The current LTS line is 3.13, supported until July 31, 2027, according to the Prometheus release cycle page. Decide which line you will follow, write down the date you will move to the next one, and assign an owner for reading release notes before each move. Confirm with your own change process how much testing a Prometheus upgrade needs, since the scrape configuration, recording rules and Alertmanager integration all depend on it.
Grafana follows a different cadence. Its upgrade guidance says major releases arrive once a year in April or May, minor releases roughly 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. Plan for patch releases as routine maintenance and treat minor and major moves as planned changes. Because Grafana stores its configuration in a database, confirm that your MySQL or PostgreSQL backup covers it before each upgrade, and confirm whether your provisioned dashboards and alert rules load cleanly on the new version in a non-production instance first.
The most important upkeep task is re-checking the monitoring after every Temporal Server upgrade. Temporal requires upgrades one minor version at a time, so each step is also a chance for metric names, labels or service behavior to change. After each step, compare the Service, SDK and worker panels with the previous baseline, confirm that the backlog, latency and failure alerts still fire in a test namespace, and update any recording rules that depend on renamed series. Finally, review alert noise on a fixed schedule. Look at which alerts fired, which were acknowledged without action, and which silences have been open for a long time, then tighten thresholds or remove rules that no one acts on. Ask your partner or internal team to document this review as a recurring task, because a dashboard that no one checks after go-live will drift out of date.
How DeployOpen scopes and delivers Temporal monitoring with Prometheus and Grafana
DeployOpen plans, builds and documents Prometheus and Grafana monitoring for self-hosted Temporal inside your own infrastructure. The work starts with a written scope that names the Temporal Service, client and worker metrics to collect, the dashboards and alerts to build, and the health checks to wire in, so your operators can see backlog, latency and failures before workflows stall.
How we scope
- Inventory the Temporal Service deployment, workers, namespaces and the hosts or pods where each component runs
- Agree which Service, client and worker metrics the monitoring must cover, and which teams receive each alert
- Confirm the Prometheus, Alertmanager and Grafana versions and the database each component will use before the build starts
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins
How we build
- Configure Prometheus scrape targets for Temporal Service and worker endpoints, reachable only from trusted internal networks
- Build Grafana dashboards for backlog, schedule-to-start latency and workflow failure trends, defined as code where possible
- Write alert rules and Alertmanager routing, grouping and silences, and test each alert against a known fault
- Secure Grafana with authentication on the metrics endpoint, SSO where your identity provider supports it, and hardened cookie settings
How we hand over
- Deliver a configuration record covering scrape jobs, retention settings, dashboard and alert definitions, and owners
- Document a runbook that maps each alert to the first checks an operator should make
- Walk through the dashboards and alert flow with the operators who will respond to them
- Record the storage and retention choices so your team can review capacity and remote storage decisions later
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover
- Retainers can cover tracking of Prometheus and Grafana release lines and planned upgrades to supported versions
- Retesting of alert rules after Temporal Server upgrades or changes to worker deployments can be included in scope
- Ask for the support scope, response expectations and upgrade responsibilities in writing before signing

