Temporal monitoring with Datadog

If your operations team already runs Datadog, you can send self-hosted Temporal metrics there instead of standing up Prometheus and Grafana. This page covers the supported paths, the setup sequence, and the alerts that catch backlogs before workflows stall.

On this page

Monitoring Temporal with Datadog instead of Prometheus and Grafana

A regulated team running self-hosted Temporal often wants Temporal metrics in Datadog rather than in a separate Prometheus and Grafana stack. The good news is that the Temporal monitoring guide names Datadog as an alternative frontend to Grafana, and it says Datadog has a Temporal integration for collecting Temporal Service metrics. The Temporal Service and its SDKs emit metrics that can be relayed to any monitoring platform, so Datadog is a supported destination rather than a workaround. The guide also notes that the OpenTelemetry Collector can replace direct Prometheus scraping, which gives you one place to receive, filter and forward metrics from the Temporal Service, workers and clients.

Before you build this, confirm the exact configuration against current Datadog and Temporal documentation. The integration steps, the Agent or Collector version, the metric names and the tag conventions can change between releases, and the monitoring guide does not reproduce them. Ask your Datadog account team which integration package and Agent version they support for your Temporal Server version, and check the Temporal monitoring guide for the metrics endpoints each Temporal service exposes. Record which metrics you depend on for alerts, because a renamed metric can silently break a monitor.

Decide early who owns the metrics pipeline: the platform team running the Temporal Service, or the security and operations team that owns Datadog. Your decision affects where the Collector runs, who can change its configuration, and whether metric labels that may include namespace or task queue names leave your network. Confirm that the Datadog site and any proxy path meet your data residency and network rules, and plan how you will test that alerts on task backlogs and workflow latency fire before you rely on them during an incident.

What you need before sending Temporal metrics to Datadog

Datadog monitoring for Temporal depends on four things lining up: a Temporal Server version and deployment method that expose metrics cleanly, a Datadog account with the right access, network paths from the Temporal hosts to your collector, and access to the worker and client code. Check each one before you change any dashboards or alert rules.

Server version and deployment method

Confirm which Temporal Server minor version you run and how it is deployed. If you use the Helm chart, chart versions below 0.73.1 do not work with server images 1.30 and later, so pin the chart to a compatible release before adding metrics config. Also confirm whether you run Docker Compose, binaries, or Kubernetes pods, since each changes where the metrics endpoint and collector sit. Upgrading servers should follow the one-minor-version-at-a-time path, so plan any upgrade before the monitoring work begins.

Deployment docs

Datadog account and API key roles

Create or confirm a Datadog organization and an API key scoped for metric submission from your collector or agent. Ask your Datadog administrator which roles the key holder needs and who approves key creation, since keys often outlive the person who made them. Store the key in your secrets manager rather than in chart values or plain configuration files. Confirm the Datadog site (region) your organization uses, because the endpoint your collector sends to depends on it.

Network path to the collector or agent

Map the path from each Temporal Service host, and from each worker host, to the Datadog Agent or OpenTelemetry Collector. Temporal services should run on hosts not reachable from the public internet, so the collector must be reachable inside your trusted network, with outbound egress allowed only to the Datadog endpoint for your site. Confirm firewall rules, proxies and DNS resolution from every host that emits metrics, and record the ports you open so security reviewers can trace them.

Access to worker and client code

Temporal Service metrics come from the server itself, but SDK metrics for workers and clients are emitted by your application code. Confirm that your team can change worker and client startup configuration, including the metrics handler the SDK uses, and that those changes go through your normal release process. If workers belong to another team or a vendor, agree on who owns the metrics configuration before you start, because the signals you need for backlog and latency alerts come from there.

Ownership and alert routing

Name the team that receives Datadog alerts for task backlogs and latency, and the escalation path to the team that owns the Temporal Service and the workers. Confirm which on-call rota covers the namespaces and task queues in scope. Without this agreed up front, alerts on backlog growth can land in a channel nobody watches, and the first signal of a stalled workflow becomes a customer report.

How to configure the metrics pipeline from Temporal to Datadog

This sequence takes Temporal Service, worker and client metrics from their endpoints into Datadog, so that backlogs, latency and failures appear as series you can alert on. Each step ends with a check that confirms the data is arriving before the next step begins.

  1. Confirm the Temporal Service metrics endpoints

    The platform engineer running the self-hosted Temporal Service checks which services expose metrics endpoints in the deployment, such as the frontend, history, matching and worker services, and records the host and port for each. The Self-hosted Temporal monitoring guide describes which metrics the Service emits and how they are relayed to monitoring platforms, so confirm the chosen server version matches that guide. The step is done when a plain HTTP request to each endpoint returns metric text from inside the cluster network.

  2. Deploy a collector in the cluster

    The platform team deploys either the Datadog Agent or an OpenTelemetry Collector in the same Kubernetes cluster or network segment as the Temporal Service, since the Temporal deployment guidance expects the services to sit on internal networks that are not reachable from the public internet. The collector needs outbound access to Datadog only, and its Datadog API key should come from a Kubernetes Secret or your secrets manager rather than a values file. The step is done when the collector pod reports healthy and its own logs show no export errors.

  3. Configure the collector to scrape Temporal metrics

    The platform engineer configures the collector to scrape each Temporal metrics endpoint recorded in the first step, using a Prometheus receiver in an OpenTelemetry Collector configuration or the equivalent openmetrics check in the Datadog Agent. Add a Datadog exporter (OpenTelemetry) or rely on the Agent's built-in forwarder, and set resource attributes such as cluster, environment and Temporal service name so series can be filtered later. The step is done when the collector's self-metrics show successful scrapes for every endpoint.

  4. Enable SDK metrics in workers and clients

    The application team enables metrics in each Temporal SDK client and worker, pointing the SDK at a metrics endpoint or an OpenTelemetry exporter that the collector can reach. Use one consistent set of tags for the service, namespace and task queue across workers so that Service-side and SDK-side series can be joined in Datadog. Confirm the exact SDK setting for your language in the Temporal SDK documentation before deploying. The step is done when each worker pod exposes its own metrics endpoint and the collector scrapes it.

  5. Verify that series and tags arrive in Datadog

    The platform engineer opens the Metrics Explorer in Datadog and searches for the Temporal Service metric names and SDK metric names seen at the endpoints. Confirm that the expected tags, such as namespace, task queue and environment, are present on each series and that no series arrive with the wrong cluster or environment value. The step is done when a sample of each metric family shows recent data points for every service type.

  6. Confirm counters change under a test workflow

    The application team starts a test workflow in a non-production namespace with a dedicated task queue, runs it to completion, and watches the related counters and latency series in Datadog for the same namespace and task queue tags. Expected changes include started and completed workflow counts and task processing timings, and a worker stopped during the test should show a backlog rise on the matching task queue. The step is done when the test produces the changes you expect and the team has written down the metric names used for alerting.

  7. Create alerts on backlogs and latency

    The on-call owner creates Datadog monitors on task queue backlog, schedule-to-start latency and workflow failure counts, using the namespace and task queue tags confirmed in the previous step, and sets thresholds with the application owners based on their expected load. Route the alerts to the team that runs the workers, and document which series each monitor reads so that future Temporal upgrades can be checked against them. The step is done when a deliberately stalled test queue triggers the backlog monitor and the alert reaches the on-call channel.

How Temporal metrics reach Datadog

Metrics start in the Temporal Service pods (frontend, history, matching, worker services), and in the workers and clients that run your workflow and activity code. Both emit metrics that a relay inside your network collects, either an OpenTelemetry Collector that replaces direct Prometheus scraping or a Datadog Agent with the Temporal integration enabled. The relay is the only component that sends data across the boundary to Datadog, so check that it is the sole egress path and that the Temporal hosts are not reachable from the public internet.

Metric flow from self-hosted Temporal components through a relay to Datadog.

Choosing between the Datadog Agent and an OpenTelemetry Collector

If your organization already runs the Datadog Agent on hosts and Kubernetes nodes, the simplest path is usually to add Temporal to the Agent setup you already operate. The Temporal self-hosted monitoring guide names Datadog as an alternative to Grafana and notes that Datadog has a Temporal integration for collecting Temporal Service metrics, so Service metrics can flow through the Agent your platform team already patches and monitors.

  • Ownership: The platform or observability team keeps one collection tier, one API key rotation process and one upgrade cycle for the Agent.
  • Configuration: Temporal Service metrics are enabled through the integration configuration, so you avoid maintaining a separate scrape definition for each Temporal component.
  • SDK metrics: Worker and client SDK metrics come from your application processes. Confirm with Datadog documentation whether your SDK metric endpoints can be scraped or forwarded through the Agent, and who configures those checks.
  • Cost driver: Custom metric volume rises with the number of tags you add, especially per-workflow-type or per-task-queue labels. Agree on a tag policy before rollout.
  • Tooling fit: Dashboards and monitors live in Datadog, so alert routing follows your existing incident process.

Confirm with Datadog support which Temporal integration version matches your Agent release, and which metrics it collects by default.

Mapping Temporal metric families to Datadog dashboards and alerts

This table maps the Temporal Service, worker and client metric families to the dashboard panels and alert conditions they support in Datadog. Use it to decide what each panel answers and which alerts need a baseline before they page anyone. Confirm every metric name and tag in your running environment before building panels, because the exact names depend on how metrics are relayed.

Metric familyDashboard panels it supportsAlert conditions to considerConfirm before building
Task queue and task backlogBacklog depth per task queue and namespace over timeBacklog growing for a sustained period while worker slots are idleBacklog metric name and task queue tag as emitted by your relay
Service request latencyFrontend and history request latency by operationLatency above a baseline you measured during normal loadOperation tag values and histogram or percentile format
Persistence latencyDatabase call latency split by store and operationPersistence latency rising while service latency also risesWhether persistence metrics appear through your Datadog integration
Service errorsError counts by service and error typeError rate above a baseline for a chosen windowError type tags and whether they separate client and server faults
Worker schedule-to-start latencyTime tasks wait before a worker picks them up, per task queueSchedule-to-start latency rising while backlog stays flatMetric name in the SDK version you run and its tags
Worker task slotsUsed and available slots per worker poolSlots fully used for a sustained periodSlot metric names for your SDK language and version
Poll and failure countsPoll requests and poll failures per workerPoll failures clustered on one worker deploymentPoll metric names and whether failures carry a reason tag

Alerts on task backlogs and latency that catch stalls early

A stalled Temporal workflow usually shows up first as a queue that grows, a task that waits too long for a worker, or a dependency that slows down. The alerts below watch those early signals in Datadog so the team acts before workflows miss their deadlines. Thresholds depend on each workload, so each one should be set from a measured baseline.

Task queue backlog growth

Backlog is the number of tasks waiting on a task queue. A backlog that keeps rising while workers look healthy means workers are slower than incoming work, or a queue has no poller at all. Alert on sustained growth over a window rather than a single spike, and compare against the normal daily pattern for that queue. Check the Datadog graph for the matching task queue and namespace before scaling workers.

Schedule-to-start latency on task queues

Schedule-to-start measures how long a task waits between being scheduled and being picked up by a worker. A rising value on one task queue points to too few worker slots, a slow worker deployment, or a queue shared by workloads with different needs. Tune the alert threshold from the latency your business processes tolerate, and confirm the metric name and tags in the Datadog Temporal integration before building the monitor.

Worker poll failures

Workers repeatedly poll task queues for work. Failed or empty polls that persist after a deployment, a network change, or a credential rotation mean workers cannot reach the Temporal frontend or are not registered on the queue. Alert on the rate of poll failures per task queue, and link each alert to the worker deployment that owns that queue so the on-call engineer knows who to page.

Persistence latency

Every workflow state change is written to the persistence store, so slow database calls slow the whole cluster. Watch persistence request latency on the history and matching services together, since a slowdown in one shows up as delays across task queues. Set the threshold against the database team's own latency objectives, and confirm the Datadog metric names for your chosen persistence store before building the monitor.

Frontend error rates

The frontend service is the entry point for clients and workers. A rising share of failed requests to the frontend can come from expired certificates, authorization rejections after a configuration change, or overload on the service. Split the error rate by error type where the metrics allow it, because a rise in authorization errors points to a different fix than a rise in server errors.

Missing metrics as a health signal

A metric that stops reporting can look like a healthy system. Create a monitor that fires when expected Temporal series disappear for a set period, covering the services, task queues and worker processes you rely on. Missing data often means the OpenTelemetry Collector, the Datadog agent, or a worker pod has failed, so the alert should name the collector pipeline to check first.

Common reasons Temporal metrics are missing or misleading in Datadog

This table lists the failures teams hit most often when Temporal metrics reach Datadog, with the likely cause and the fix for each. Read it as a checklist after the first data arrives, and again whenever a dashboard looks too quiet or too busy. The main takeaway is that most problems are about the metric path, the tags or the alert logic, not the Temporal Service itself.

SymptomLikely causeFix
No series arrive in DatadogThe collector or agent cannot reach the Temporal metrics endpoint, or a firewall blocks the path to DatadogConfirm the metrics endpoint responds from the collector host, then check egress rules and the Datadog site configured on the agent or OpenTelemetry Collector exporter
Series arrive with wrong or high-cardinality tagsPer-workflow or per-run identifiers were added as metric tags, multiplying series countsKeep tags to service, namespace and task queue; drop unbounded identifiers in the Collector processor before export
Counts are doubled or inconsistentPrometheus and Datadog both scrape the same Temporal endpoints during a migrationRun one scraper per endpoint, retire the Prometheus job once Datadog series match, and compare totals for a full cycle
Metrics stop after a server upgradeHelm chart below 0.73.1 used with Temporal Server 1.30 or later, so the deployed services do not match the expected configurationConfirm the chart version against the server image before upgrading, and follow the deployment notes when moving between minor lines
Worker or client metrics are missingSDK metrics were not enabled or exported on the workers and clients, so only Service metrics appearEnable SDK metrics on each worker and client process and confirm each one exports to the same pipeline as the Service
Alerts fire on stale or flat dataMonitors use a window longer than the scrape interval, or treat missing data as zero, so silence looks healthySet monitors to alert on missing data, choose windows shorter than the feed interval, and test each alert with a controlled backlog

Questions teams ask before sending Temporal metrics to Datadog

Does Datadog have an official Temporal integration?

Yes. The Temporal self-hosted monitoring guide names Datadog as an alternative to Grafana and says Datadog has a Temporal integration for collecting Temporal Service metrics. The guide's scope is the Service metrics, so the integration is the starting point for server-side visibility. Confirm the current integration name, its setup steps and any version requirements in Datadog's own documentation before you commit, because the integration is a Datadog feature and its configuration may change independently of Temporal Server releases. Worker and client (SDK) metrics are a separate question: the Temporal Service and SDKs emit metrics that can be relayed to any monitoring platform, so you should verify in your own test environment that the worker and client series you need reach Datadog.

What exactly does the Datadog integration collect from Temporal?

The guide ties the integration to Temporal Service metrics, which cover the server side of the cluster. Those are the signals that show whether the Frontend, History, Matching and Worker services are healthy and keeping up with traffic. Worker and client metrics come from the SDK running in your application processes, not from the server. Ask your team to list the metric families they plan to alert on, then check each one against what the integration ingests. A gap found in a test environment is far cheaper to fix than a gap found during an incident when a task queue is backing up.

Can our own team send Temporal metrics to Datadog without a partner?

Yes, if you have people who already run Temporal Server and operate a Datadog account. The work is configuration rather than new code: enable the integration, decide how SDK metrics reach Datadog, and build dashboards and monitors. The harder parts are judgment calls: which series to alert on, what thresholds mean for your workload, and how to avoid noisy monitors. Teams that lack Datadog admin experience or have never tuned Temporal alerts often take longer and make more changes after go-live. An external partner is most useful when the scope includes several clusters, mixed Prometheus and Datadog estates, or alert policies that must be reviewed by your security or operations leads.

What drives the effort of a Datadog monitoring setup?

Four factors drive effort most. First, your existing footprint: a team already sending metrics through Datadog Agents or the OpenTelemetry Collector has fewer moving parts than one starting from Prometheus. Second, the number of clusters, namespaces and workers, since each adds metric sources, tags and dashboard variables to keep consistent. Third, alert design: deciding which task backlogs, schedule-to-start latencies and failure rates page someone versus open a ticket is most of the judgment work. Fourth, whether you are migrating from Prometheus and Grafana, which means running both during a transition and comparing results. Ask any quote to name these four factors and state how each one was assumed.

What does our team need to provide for this work?

Plan for three inputs. Cluster access is needed to read the Temporal Service configuration, confirm how metrics endpoints are exposed, and test changes in non-production clusters first. A Datadog account with an admin or equivalent role is needed to install the integration, create API keys in the right scope, and publish dashboards and monitors. Named workload owners are needed to confirm which task queues matter, what normal latency looks like, and who receives each alert. Without the workload owners, alert thresholds tend to be guesses. Also confirm that Temporal Services run on hosts not reachable from the public internet, since metrics paths should stay inside your trusted networks.

How long does a Datadog monitoring project take?

No duration is supplied for this work, so do not plan around a figure from this page. The timeline depends on the factors above: the number of clusters, whether SDK metrics need new pipelines, how many alerts and dashboards are in scope, and how long your change-control process takes for production. Ask for a written scope that lists deliverables, environments, test steps and a review point for alert thresholds, and confirm the schedule in that document. Fixed-scope engagements are agreed in writing before work starts, so the duration should be stated there rather than inferred.

Does Temporal Cloud change how we send metrics to Datadog?

It changes the server side. The Datadog monitoring guide here covers self-hosted Temporal Service metrics, which you collect from your own servers. Temporal Cloud is a managed service that Temporal Technologies operates, so your monitoring approach, access to server metrics and support model differ. Worker and client metrics from your own SDK processes still apply in either case. If you are deciding between self-hosting and Temporal Cloud, read the Temporal Cloud pages on connectivity, identity, availability and cost before choosing a Datadog design, because the answer may determine which metrics you can collect at all.

What to confirm with Datadog and Temporal before you commit

Confirm the Datadog integration version and its configuration against the current documentation before you commit. The self-hosted monitoring guide names Datadog as an alternative to Grafana and says Datadog has a Temporal integration for collecting Temporal Service metrics, but the integration's version, required settings and supported Temporal server versions can change, so check them in Datadog's documentation and in the Temporal guide at Monitor self-hosted Temporal at the time you plan. Then confirm the metric list for the exact Temporal Server version you will run, because the Service and each SDK emit their own set, and some metric names used in alert rules may differ from those in a Prometheus setup. Test the alerts you plan to write, such as task backlog and latency, against metrics that actually arrive in your Datadog account.

Next, get Datadog's pricing for your expected volume in writing. Ask how custom metrics are counted, how tags such as namespace, task queue and worker identity multiply series, and what log and metric ingestion costs for the retention you choose. Also confirm whether the OpenTelemetry Collector route is a better fit for your estate than a direct integration, since that choice affects both cost and how easily you can move to another backend later. Ask Datadog and your own finance team who pays for ingestion, and whether the figures are one-time setup or recurring.

Finally, confirm data residency and retention before any telemetry leaves your network. Metric tags and log lines can contain workflow type names, task queue names and error messages that reveal business processes, so check which Datadog site will receive the data, whether it meets your data protection obligations, and how long your compliance and incident response teams need that history. Record these answers in the design document, because they decide how much of the Temporal monitoring you can send to Datadog and how much must stay in systems you control.

How DeployOpen works on this

DeployOpen plans and deploys Datadog monitoring for self-hosted Temporal inside your own infrastructure, starting from a written scope that names the services, SDK workers and clients to be observed. The work covers metric collection, dashboards, alert rules and runbooks, and it is tested against your real traffic before handover.

How we scope

  • Inventory every Temporal Service component, worker fleet and client that must emit metrics to Datadog
  • Confirm whether metrics leave through the Datadog integration, an OpenTelemetry Collector, or both
  • Agree the alert set for task backlogs, schedule-to-start latency and workflow failures in writing
  • Record which Datadog account, site and tags apply, and who owns each alert route
  • Engagements are fixed-scope, with deliverables and timelines agreed before work starts

How we build

  • Configure Temporal Service metric export and confirm series arrive for each service role
  • Instrument worker and client metrics so queue backlog and task latency are visible per task queue
  • Build Datadog dashboards and monitors that match the agreed alert list and thresholds
  • Test alerts by reproducing backlog and worker shutdown conditions in a non-production environment
  • Keep Prometheus and Grafana running in parallel until the Datadog signals are verified

How we hand over

  • Deliver configuration as code, with dashboard and monitor definitions stored in your repository
  • Provide a runbook that maps each alert to the first checks an operator should make
  • Document the metric names, tags and cardinality decisions, so future changes stay controlled
  • Walk your operations and on-call teams through alert routing and escalation before go-live
  • Record the test results and the open items your team must confirm with Datadog or Temporal

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Re-check metric names and integration behavior when you move to a new Temporal Server minor version
  • Review alert thresholds after load changes, new task queues or new workflow types
  • Confirm Datadog plan limits and custom metric volume with your account team before scaling up
  • Keep dashboards and monitors aligned with each change to your Temporal deployment

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.