Temporal worker alerting

Temporal worker alerting turns worker health signals into pages that someone can act on. This page covers which signals to alert on, how to route each one to a runbook, and what to confirm in your environment.

On this page

Why Temporal worker alerting needs its own design

Workers that stop polling or run out of slots delay work without failing visibly. In a self-hosted Temporal deployment, the workflow and activity code runs on worker processes your team operates, and the Temporal Server only queues tasks until a worker picks them up. A worker that has lost its pollers, or whose task slots are full, does not raise an error that anyone sees. Workflows keep starting, histories keep growing, and the first symptom is often a customer or a downstream system noticing that a result arrived hours late. Standard service monitoring, which checks whether processes are up and CPU is normal, will usually miss this failure mode.

Worker alerting covers the signals that show whether tasks are moving through each task queue: slots exhausted, pollers stopped, schedule-to-start latency (the time a task waits in a queue before a worker begins it), and sticky cache misses, which force a worker to replay workflow history it could have kept in memory. Teams need this alerting once workflows carry business or regulated deadlines, once several services share a task queue, or once workers scale up and down. Before writing any rule, confirm the exact metric names, labels and default behavior for your SDK language and your Temporal Server version, because these change between releases. Thresholds should come from your own baseline measurements, not from a number copied from another team's dashboard.

The design decision is to tie each signal to a named owner and a runbook step, so an alert answers the question of what to do next. A slots-exhausted alert on a payments queue needs a different response from a sticky cache miss rate that climbs after a deployment. Start by listing your task queues and the workers that poll them, then decide which alerts page someone and which only create a ticket. Run the rules against a test environment with deliberately stopped workers before trusting them in production.

Which worker signals to alert on and when each fits

This table compares five worker signals: slot exhaustion, poller drops, schedule-to-start latency, sticky cache misses, and shutdown or version drift. Read each row for what the signal indicates, its likely cause, and whether it should page someone or open a ticket. Exact metric names depend on the SDK and server version, so confirm them in Temporal's metrics documentation before writing rules.

SignalWhat it indicates and likely causePage or ticket
Worker slot exhaustionWorkers have no free task slots, so new workflow or activity tasks wait. Usual causes are undersized concurrency settings, a traffic spike, or activities blocked on slow dependencies.Page when sustained and paired with rising schedule-to-start latency; ticket when brief
Poller count dropFewer pollers are connected to a task queue than expected. Usual causes are crashed or evicted pods, network or TLS changes to the frontend, or a deployment that stopped workers.Page when a queue loses all pollers; ticket for partial drops
Schedule-to-start latencyTasks sit in the queue before a worker picks them up. This is the clearest user-facing sign of insufficient capacity or missing pollers, and it fits best with slot and poller signals.Page on sustained breach of the threshold you set for a critical queue; ticket for trends
Sticky cache miss rateWorkflow tasks are replayed from history instead of the worker cache, raising CPU and latency. Usual causes are a cache size too small for active workflows, frequent restarts, or many workers sharing load.Ticket by default; page only if it coincides with latency breaches
Worker shutdown or version driftWorkers are stopping, or old and new build IDs run side by side longer than planned. Usual causes are rolling deployments without graceful shutdown or routing that was never updated.Page on unexpected shutdowns during business hours; ticket for planned drift

Setting up worker metrics and alert routing

This sequence turns Temporal worker health signals into alerts that reach an on-call channel, with each alert pointing to a runbook. It covers the path from SDK metrics to Prometheus scraping, rule definition per task queue, Alertmanager routing and a final test of the whole chain.

  1. Expose worker metrics from each SDK process

    Each worker process built with a Temporal SDK needs its metrics endpoint enabled, so Prometheus has something to pull. The platform team and the service owners agree on the metrics port, the labels that identify the deployment, the namespace and the task queue, and where the endpoint is reachable inside the cluster or network. Confirm the exact metric names and SDK configuration keys in the SDK documentation for your language and version, since they differ between SDKs. Done means that a direct HTTP request to one worker's metrics endpoint returns worker series, including task queue and poller data, from a staging process.

  2. Scrape worker targets with Prometheus

    Add the worker endpoints to Prometheus through service discovery or static configuration, and set labels such as namespace, task queue and worker version so alerts can be scoped correctly. Because Prometheus is pull-based, confirm that the network path from Prometheus to every worker pod or host is open and that the workers are not exposed to the public internet. Done means that the Prometheus targets page shows every worker target in the state up, and a query on a worker metric returns a series for each expected task queue.

  3. Define alert rules per task queue

    Write PromQL alert rules for the signals that matter most: task slots nearly or fully used, pollers that have dropped to zero, schedule-to-start latency rising above the level the team agreed as normal, and sticky cache misses increasing. Scope each rule by task queue, because a shared worker pool can hide a stalled queue behind healthy ones. Set thresholds from the baseline measured in your own environment, not from defaults, and record the owner of each rule. Done means that promtool validates the rule file and the rules evaluate in the Prometheus rules view without errors against recent data.

  4. Route alerts through Alertmanager with grouping

    Configure Prometheus to send alerts to every Alertmanager instance, not to a load balancer in front of them, and define routes that send each task queue's alerts to the owning team's receiver. Set grouping so that one outage on a queue produces one notification instead of a flood, and use inhibition so that a pollers-stopped alert suppresses dependent latency alerts for the same queue. Done means that the Alertmanager status page shows the expected configuration and that a routing test with a sample label set selects the correct receiver.

  5. Attach a runbook link to every rule

    Add a runbook annotation to each alert rule that points to the page the on-call engineer will open first, and include the task queue name and the first diagnostic command in that page. Rules without a runbook do not go live. Review the runbook text with the service owner, because an alert that names a symptom but gives no next step adds delay during an incident. Done means that every rule file entry has a runbook annotation, and a review checklist confirms that each link resolves to a current page.

  6. Plan silences for planned work

    Define how planned maintenance, worker deployments and scheduled drains are announced and silenced in Alertmanager, scoped by task queue and time window, with the person who created each silence recorded. Silences that are never removed hide real faults, so agree on a review step after each window. Done means that a test silence on a non-production queue suppresses only the intended alerts and expires on schedule.

  7. Test the alert path to the on-call channel

    Trigger a controlled test alert on a non-production task queue, for example by scaling a test worker pool to zero pollers, and follow it through Prometheus, Alertmanager and the receiver. Confirm that the notification arrives in the on-call channel with the task queue label, the severity and the runbook link, then restore the workers and confirm that the resolved notification also arrives. Done means that the team has a recorded test result showing each hop, and any missing label or broken link has been fixed and retested.

How worker signals reach an on-call runbook

The path starts at the Temporal worker's metrics endpoint, which sits inside the internal network and is reachable only by Prometheus. Prometheus pulls those metrics on a schedule and evaluates alert rules against them. Firing alerts pass to Alertmanager, which groups and routes them to the on-call channel, where each alert links to its runbook. Check that the metrics endpoint is not exposed beyond the trust boundary, and that Prometheus points at every Alertmanager instance.

Worker metrics pass through Prometheus and Alertmanager to an on-call runbook.

Alerts for capacity, availability and cache health

Slot and poller alerts show whether workers can accept work at all. Build the baseline from your own traffic, per task queue and per language runtime, rather than from SDK defaults, because a slot count that looks idle overnight can be saturated during a daily peak. Compare the same hours across several weeks. Prometheus keeps 15 days of data by default, so extend retention before you try to set a threshold from history.

  • Baseline: record typical slot use per worker deployment at peak and off-peak, tracking workflow and activity task types separately.
  • Threshold: set the saturation alert from observed peak use plus headroom you validate in load testing, and review it after each release.
  • Pollers stopped: alert when a task queue has no active pollers for a window you choose from your restart and deploy history, since a silent drop leaves work queued with no error.
  • Scope: alert per task queue and namespace so one saturated queue does not disappear inside a healthy fleet average.

For the first three checks, confirm the pod or process count and any recent deployment for that queue, check whether workers are blocked on CPU, memory or a downstream dependency, and check whether the backlog for that queue is growing or draining.

Writing runbooks that match each alert

A runbook is only useful if the alert that opens it names the task queue, namespace and worker deployment involved. The cards below cover the parts every Temporal worker runbook should define, so the on-call engineer knows who owns the problem, how urgent it is, and what to do first.

Owner and severity

Name the team that owns the task queue and the worker deployment, not just the platform that hosts them. Severity should reflect business impact, such as a payment or onboarding queue backing up, rather than the metric alone. Confirm that the alert labels carry the namespace, task queue and deployment version so the owner is identified without a lookup. A single named owner per queue prevents alerts from bouncing between teams during an incident.

First diagnostic commands

List the exact checks an on-call engineer runs first, such as describing the task queue to see active pollers, reviewing worker logs for shutdown or poll errors, and checking the Kubernetes pod status for the deployment. Keep each command in the runbook as copy-ready text with the namespace and queue name filled in from the alert. Test the commands against your own Temporal CLI and Kubernetes versions before the runbook goes live, since flags and output change between releases.

Escalation path

Define who is paged when the first checks do not resolve the alert, and at what elapsed time. Include the team that runs the Temporal Service itself, separate from the team that owns workers, because a stopped poller and an unhealthy server look similar in an alert. Record the contact route for each tier and confirm it against your on-call tooling. If you run Temporal Cloud, add the support tier you bought as a named escalation step.

Rollback or drain action

Document the safe actions the on-call engineer may take without approval, such as scaling a worker deployment up, routing new starts to a previous worker version, or draining a deployment before termination. Each action needs a stated effect on in-flight workflows. Confirm the drain behavior and termination timeouts with your worker shutdown configuration before writing the step, because an abrupt pod termination can interrupt activities that were running.

Post-incident review

Set the trigger for a review, such as any page that breaches the severity threshold or any alert that needed an escalation, and define what it must record: the alert, the root cause, the queue and deployment affected, and whether the runbook was accurate. Feed the findings back into alert thresholds and runbook steps. Review open items on a fixed schedule so that the runbook reflects the current worker configuration rather than the one it was written against.

Questions teams ask before alerting on Temporal workers

How much effort does Temporal worker alerting take to set up?

Setup effort depends mostly on how many workers, task queues and namespaces you run, and on whether metrics from them already reach a monitoring system. A small fleet with one namespace and existing Prometheus scraping is a much smaller job than a multi-language, multi-queue estate where each team owns its own workers. The work covers exposing and scraping worker metrics, writing alert rules for slots exhausted, pollers stopped, schedule-to-start latency and sticky cache misses, routing each alert to an owner, and writing a runbook for every alert. Ask any partner to size the work from your worker inventory and task queue list, not from a generic template.

Can our own team build Temporal worker alerting without outside help?

Yes, if you already run Prometheus and Alertmanager and have engineers who understand the Temporal worker metrics for your SDK and task queues. The harder parts are usually not the alert rules themselves but deciding what a healthy baseline looks like for each queue, agreeing who acts on each alert, and keeping the runbooks current as workers change. Outside help is most useful when the team lacks Prometheus or Temporal operations experience, or when the alerting must be reviewed by security or compliance staff before it goes live. DeployOpen plans, implements and documents this kind of monitoring inside your infrastructure, under a written scope.

What does the alerting work need from our team?

Expect to provide access to the metrics your workers expose, a place where Prometheus can scrape them, and an Alertmanager route to your paging or chat tools. You also need an on-call rota that accepts the alerts, and a named owner for each runbook, because an alert without an owner tends to be silenced. Someone who knows your worker deployment, such as the platform or Temporal application team, must confirm which queues are critical and what normal load looks like. Ask any partner to list these inputs in the written scope so that gaps are found before go-live.

How long does it take to tune Temporal worker alerts?

Tuning time depends on how quickly your workload shows its normal pattern, so it is usually measured in weeks of observation rather than days of configuration. Thresholds for slots exhausted or schedule-to-start latency should come from observed load on each task queue, since a threshold copied from another system will either fire constantly or miss real backlog. Plan a period where alerts notify a channel but do not page, review every firing, then promote the reliable ones to paging. Ask for the tuning window and review checkpoints in the quote, because they are the main source of noise reduction.

How does Prometheus licensing affect the cost of alerting?

Prometheus is licensed under Apache-2.0 according to its GitHub repository, and there is no paid enterprise edition of the project itself. That means the software cost is zero, and the real costs come from the infrastructure that runs Prometheus and Alertmanager, the storage for metrics, the implementation work, and the people who operate and tune it. Prometheus stores data locally with a default retention of 15 days, and its storage docs say local storage is not clustered or replicated, so long-term retention or high availability adds design and infrastructure cost. Ask for the storage retention, the Alertmanager high availability design and the recurring operations hours in any quote.

What recurring costs should we expect after alerting goes live?

The recurring costs are mostly people and infrastructure: on-call time, runbook upkeep, metric storage growth, and periodic review of thresholds when worker counts or SDK versions change. Prometheus release timing also matters, because a minor release generally stops receiving bug fixes six weeks after it ships, so the monitoring stack needs a planned upgrade path. Prometheus long-term support releases receive bug fixes for one year, and the current LTS line is 3.13, supported until July 31, 2027, according to the Prometheus release cycle page. Ask for a written list of what the team must maintain and how often, so the recurring cost is visible before you commit.

Does alerting need a Grafana dashboard as well, and what does that add?

Alerting does not require Grafana, since Prometheus evaluates alert rules and Alertmanager routes notifications. A dashboard helps the on-call team see worker slots, poller counts and latency trends during an incident, and Grafana can be deployed with provisioned data sources and dashboards so the setup is reviewable. Adding Grafana adds a service to run, with its own database choice (SQLite is not suitable for production, so MySQL or PostgreSQL is required) and its own upgrade cycle. Decide whether the dashboard is part of the scope before requesting a quote.

Limits to confirm in your environment

Worker alerts are only as good as the monitoring stack under them. The cards below cover the checks that connect Temporal's worker metrics to a Prometheus and Alertmanager setup you can rely on. Confirm each one against your own Temporal Server version, SDK and infrastructure before you write the alert rules.

Metric names and availability

The worker metrics that drive these alerts, such as slot usage, poller counts and schedule-to-start latency, depend on the SDK language and the Temporal Server version you run. Names and labels can differ between SDKs and releases, so an alert written against one name may match nothing after an upgrade. Confirm each metric in your own /metrics output before you write a rule, and add a check that fails when an expected series goes missing.

Temporal releases

Prometheus retention and storage limits

Prometheus keeps its local time series database on one node and does not cluster or replicate it, so a disk failure or a full volume can erase the history you need for incident review. Confirm the retention you set against the default, decide whether remote write to long-term storage is required, and size the volume for your series count. Alert on the scrape and storage health of Prometheus itself.

Default retention
15 days
Prometheus storage docs

Alertmanager cluster setup

Alertmanager 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 through a load balancer. Confirm that peers can reach each other, that grouping and silences behave the same on every node, and that a single failed instance still delivers notifications. Test the path with a deliberate alert.

Alertmanager docs

Prometheus release line

Prometheus minor releases receive bug fixes for a short window, while the long-term support line receives fixes for one year. Choose the line you will run and plan the upgrade cadence before the alert rules depend on specific behavior. Check the release cycle page for the current support dates before you commit to a version.

Release cycle page

Dashboard scope and ownership

Grafana dashboards are optional for worker alerting, since alerts can run from Prometheus and Alertmanager alone. Decide whether dashboards are in scope, who owns them, and whether they are provisioned as code or edited by hand. If Grafana is in scope, confirm its database, high availability and authentication choices, because SQLite is not suited to production.

Grafana install docs

Workload-specific thresholds

Thresholds for slots exhausted, poller counts and schedule-to-start latency depend on your task queue volume, activity duration and worker capacity, so defaults copied from another team will misfire. Measure normal behavior for each task queue over a representative period, then set thresholds and runbook owners per queue. Review them after load changes and after each Temporal Server or SDK upgrade.

What DeployOpen confirms before building alerts

Before any alert is written, DeployOpen fixes the scope in a written list that names every Temporal worker deployment, each task queue it polls, and each namespace those workers serve. Alerts are only as useful as the names they point at, so the list also records which queues are latency sensitive, which carry batch or bulk work, and which owner receives each page. Without this list, a team tends to alert on a generic worker count that says little about whether a specific queue is backing up, so the agreed scope becomes the basis for every rule that follows.

Next, DeployOpen confirms the signals against the Temporal Server and SDK versions actually running in the client's environment. Metric names, label sets and the availability of worker-side measurements can differ between releases, and a rule built on a metric that does not exist in the deployed version will stay silent. The team should gather the exact server version, the Helm chart version if Kubernetes is used, the SDK language and version for each worker, and the Prometheus and Alertmanager versions that will evaluate the rules. Where a metric is unclear in the installed release, the engagement records that as an open item to confirm with Temporal's documentation for that version rather than assuming it.

Finally, the agreed deliverables are rules, routing and runbooks, each described in writing before work starts. Routing decisions, such as which Alertmanager receiver handles a queue owned by a payments team, need named owners and an escalation path that the client approves. Runbooks are reviewed against the client's own on-call process. DeployOpen does not promise that a given set of alerts will prevent incidents; what the reader should ask for is a written statement of what is delivered, what is tested, and what remains the client's responsibility to operate.

How DeployOpen delivers Temporal worker alerting

DeployOpen plans and implements worker alerting as part of a self-hosted Temporal deployment in infrastructure you control. The work covers which worker signals become alerts, how Prometheus and Alertmanager are wired to them, and a runbook for each alert, so your on-call team can act on what fires.

How we scope

  • Inventory the task queues, worker deployments and languages that need alerts, and agree the signals for each
  • Confirm the metrics endpoints, Prometheus setup and Alertmanager routing your environment already uses
  • Agree in writing which alerts, runbooks, dashboards and retest steps are in the fixed scope

How we build

  • Define alert rules for slots exhausted, pollers stopped, schedule-to-start latency and sticky cache misses
  • Route each alert through Alertmanager grouping, inhibition and silences to the right on-call team
  • Test alerts against induced worker faults in a non-production environment before enabling them

How we hand over

  • Deliver a runbook per alert covering likely causes, first checks, owners and escalation steps
  • Document alert thresholds, their rationale and the metrics each one depends on for your team
  • Provide provisioning files for dashboards and alert rules so changes can be reviewed in version control

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover
  • Review alert noise and threshold drift with your operators as worker deployments and workloads change
  • Retest alerts after Temporal Server, Prometheus or Alertmanager upgrades before they reach production

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.