/temporal:temporal-observabilityfrom temporal
Collects, queries, dashboards, and alerts on Temporal metrics for Cloud and self-hosted deployments. Covers OpenMetrics, PromQL, Datadog, Grafana, New Relic, OTel Collector, and worker fleet health diagnosis.
Ships in temporal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Work in one of three modes:
You produce configs, queries, and code snippets. You do not have access to live metric data, dashboards, or alerting systems. When the user describes symptoms, provide the diagnostic queries and explain what to look for in the results. This skill owns Temporal telemetry after it leaves a Worker or Client process. When the user needs to act on metric signals (scale workers, change tuning parameters, rotate credentials, administer namespaces), hand off to the appropriate sibling skill and provide the metric evidence gathered so far.
This skill covers Temporal telemetry after it leaves a Worker or Client: the Temporal Cloud metrics endpoint, self-hosted Temporal Service metrics, scraping SDK metrics, what each SDK metric means, queries, dashboards, alerts, and metric-driven diagnosis.
This skill starts at the metrics endpoint a Worker already exposes; changing how a Worker exports telemetry is not one of its tasks. In the Temporal SDK repositories, this skill covers only changes that add, rename, or remove an SDK metric. In the documentation, it covers docs/cloud/metrics/, docs/production-deployment/cloud/metrics/, docs/references/sdk-metrics.mdx, and docs/production-deployment/self-hosted-guide/monitoring.mdx.
Not covered here:
contrib/opentelemetry, logging options, and Worker heartbeat contents or settings: use temporal-developer.temporalio.contrib.aws.lambda_worker, temporalio.contrib.gcp.cloud_run, go.temporal.io/sdk/contrib/aws/lambdaworker, and go.temporal.io/sdk/contrib/gcp/cloudrun, including their OpenTelemetry helpers: use temporal-serverless.Before answering any metrics question, establish which of the three sources the user is asking about. This determines which reference files apply, which query functions are valid, and which auth/scrape patterns to use:
temporal_cloud_v1_* only) — from metrics.temporal.io, API key auth. Never use rate(). Never recommend deprecated temporal_cloud_v0_* metrics.temporal_* without cloud) — emitted by Workers/Clients, scraped from app endpoints. rate() is correct here.service_requests, persistence_latency, etc.) — emitted by the Temporal Service itself. rate() is correct here.If the source is ambiguous, ask before writing queries.
Cloud, self-hosted, or dev server. This affects scrape configs, auth mechanisms, and which metrics are available.
Prometheus, Datadog, Grafana Cloud, New Relic, ClickStack, or OTel Collector. This affects config format, query language, and available features.
Histogram units differ: milliseconds for Core-based SDKs (TypeScript, Python, .NET) vs seconds for Go and Java. Getting this wrong produces thresholds that are off by 1000x.
Most real questions require 2-3 reference files:
openmetrics-endpoint.md (auth + scrape) + integrations.md (platform config) + service-health-monitoring.md (what to alert on) + worker-health-monitoring.md (worker fleet).ops-diagnostics-reference.md (USE framework, decision trees, metric mappings) + worker-health-monitoring.md (thresholds, queries) + service-health-monitoring.md (failure rates, limits) + troubleshooting.md (per-bottleneck root causes). For worked examples: diagnosis-examples.md. If they need to act on findings: hand off to skill-temporal-workertuning.openmetrics-endpoint.md § Quick Answers + integrations.md.migration-v0-to-v1.md (mapping table + auth changes). Only relevant for users already on v0 — never suggest v0 to new users. v0 is deprecated and unavailable to new accounts.service-health-monitoring.md + worker-health-monitoring.md for the essential observation set.When the user describes a symptom (slow workflows, growing backlog, activity failures, high latency), follow this systematic process. Never diagnose without metrics data.
Map the user's description to a category:
| User says... | Category |
|---|---|
| "workflows slow to start", "backlog growing", "schedule-to-start high", "tasks queuing up" | Throughput/Backlog |
| "activities failing", "workflow failures spiking", "retries not working", "error rate high" | Failure/Error |
| "workflows taking too long end-to-end", "execution slow", "replay latency" | Latency |
| "resource exhausted errors", "throttling", "hitting limits", "provisioned capacity metrics" | Resource Pressure (read references/capacity-throttling.md) |
| "can't connect", "auth error", "certificate expired" | Not this skill — hand off to skill-temporal-cloud |
| "need to tune workers", "autoscaling", "slot sizing" | Not this skill — hand off to skill-temporal-workertuning |
If the symptom doesn't clearly map, ask what behavior they're seeing, when it started, and what changed.
Use context clues to determine:
See references/ops-diagnostics-reference.md § Environment Detection for clue table. If confidence is below 95%, ask.
You do not have access to live metrics. Establish how to get values:
Always provide queries in the user's platform syntax. See references/ops-diagnostics-reference.md § Query Examples by Platform for Datadog and New Relic translations. For PromQL, see references/worker-health-monitoring.md and references/service-health-monitoring.md.
Do not proceed with diagnosis without metrics data.
For each Temporal resource relevant to the symptom, check all three USE dimensions:
Consult references/ops-diagnostics-reference.md:
Cross-reference thresholds and detailed metric descriptions from:
references/worker-health-monitoring.md — backlog, sync match, poll success, task slots, sticky cachereferences/service-health-monitoring.md — failure rates, error rates, limits, replication lag, detecting a failover or regional outagereferences/troubleshooting.md — per-bottleneck root causes and diagnostic steps; worker log signals ([TMPRL1104], autoscaling poll-error warnings)Structure every diagnosis response using this format:
What's Happening: Plain-language explanation of the mechanics. Connect the user's metrics to the behavior they're seeing. Explain how Temporal's internals work in this situation so the user builds a mental model.
USE Analysis:
| Resource | Utilization | Saturation | Errors |
|---|---|---|---|
| (resource) | (metric: value + interpretation) | (metric: value) | (metric: value) |
Why: Root cause grounded in metric evidence. Explain the causal chain ("X is high because Y, caused by Z"). If multiple factors interact, show how.
Fix: Ordered list, most impactful first. For each action, explain why it helps in one sentence.
skill-temporal-workertuningskill-temporal-opsskill-temporal-developerMonitor After: Which metrics to watch, target values, and expected timeline for improvement.
If Not Resolved: What persistence of the issue would indicate, and next diagnostic step or skill handoff.
For fully worked examples of this protocol in action, see references/diagnosis-examples.md.
| Pitfall | Correct Behavior |
|---|---|
Applying rate() to temporal_cloud_v1_* metrics in queries | v1 metrics are pre-computed rates — use directly. rate() is only valid for SDK and self-hosted metrics. |
| Confusing SDK metric units across SDKs | Go/Java use seconds, TypeScript/Python/.NET use milliseconds. A 200ms threshold is 0.2 in Go/Java and 200 in Core SDKs. |
Assuming approximate_backlog_count = 0 means no backlog | This metric resets to zero on idle queues. Confirm with schedule-to-start latency. |
| Jumping to "add more workers" without checking slots | First check if existing workers have available slots. Slot depletion with low host CPU = configuration issue, not capacity. |
| Diagnosing without knowing the environment | Cloud vs self-hosted changes which metrics exist. Always establish environment first. |
| Ignoring the failure conversion rate | High activity failures with low workflow failures = healthy error handling. Always compute the ratio in failure scenarios. |
| Prescribing without explaining | Users who understand the mechanics make better decisions. Explain before recommending. |
metrics.temporal.io, API key auth, 30s recommended scrape interval, 30k datapoints per scrape, 180 requests/hour rate limit, ~3-minute data latency.rate(), increase(), irate(), or histogram_quantile().temporal_cloud_v1_approximate_backlog_count is approximate — can overcount and resets to zero on idle queues.worker_version label is deprecated — use temporal_worker_deployment_name and temporal_worker_build_id.| User intent | Action |
|---|---|
| Wants to know which Cloud metrics exist, their types, or labels (including Nexus, Schedule, backlog age, billable actions) | Consult references/cloud-metrics-catalog.md for the complete temporal_cloud_v1_* catalog |
| Needs to set up or configure the OpenMetrics endpoint (auth, scrape config, rate limits) | Consult references/openmetrics-endpoint.md |
| Wants to integrate metrics with Datadog, Grafana Cloud, Elastic, SigNoz, Parseable, ClickStack, New Relic, Prometheus, or OTel Collector | Consult references/integrations.md |
| Needs to scrape SDK metrics endpoints with Prometheus or Grafana, or understand SDK metric units | Consult references/sdk-metrics.md |
Setting up monitoring for a self-hosted Temporal Service, or server metrics/config changes (tasks_dropped, tasks_expired, poller_scale_decision, m3, WithCustomMetricsHandler) | Consult references/self-hosted-monitoring.md |
| Needs to interpret provisioned capacity, throttle metrics, or BusyWorkflow lock contention | Consult references/capacity-throttling.md |
| Wants to monitor Temporal Cloud service health (latency, error rates, failures, limits) | Consult references/service-health-monitoring.md |
| Needs to monitor Worker fleet health (backlog, greedy workers, misconfigured workers, sticky cache) | Consult references/worker-health-monitoring.md |
| Migrating from PromQL/v0 to OpenMetrics/v1 | Consult references/migration-v0-to-v1.md |
| Troubleshooting performance bottlenecks using metrics | Consult references/troubleshooting.md |
| Describing a symptom that needs systematic diagnosis (slow workflows, backlog, failures, latency) | Follow the Diagnosis Protocol above. Consult references/ops-diagnostics-reference.md for USE framework and decision trees |
| Wants a worked example of a diagnostic workflow | Consult references/diagnosis-examples.md |
| Wants to write Worker or Client code, including enabling SDK metrics export, tracing, or logging | Defer to skill-temporal-developer |
| Wants to emit or configure telemetry in Worker or Client code, or set up OpenTelemetry on serverless Workers | See Observability scope |
| Wants to tune Worker performance (slot suppliers, tuners, cache sizing) | Defer to skill-temporal-workertuning -- this skill owns collection/query layer only |
| Wants to administer or diagnose Temporal Cloud/self-hosted environments | Defer to skill-temporal-ops -- this skill provides metric queries for diagnosis |
| Wants Cloud connectivity, auth, or namespace config (not metrics) | Defer to skill-temporal-cloud |
temporal_cloud_v0_* metrics and the PromQL endpoint are deprecated and no longer available to new users. Never recommend v0 metrics for any purpose. Do not include v0 metric names in configs, queries, dashboards, or examples. Always use the temporal_cloud_v1_* equivalents.references/migration-v0-to-v1.md and guide them to the v1 replacements.temporal_cloud_v0_frontend_service_request_count), respond with the v1 equivalent and note that v0 is deprecated and being shut down.temporal_cloud_v0_frontend_service_request_count → temporal_cloud_v1_service_request_count — note the dropped frontend_). When helping users migrate, consult the mapping table in references/migration-v0-to-v1.md; do not attempt to guess v1 names by swapping the version prefix.curl -s "http://localhost:9090/api/v1/query?query=temporal_cloud_v1_service_request_count" should return results with recent timestamps.temporal_cloud_v1 — do matching metrics appear with recent values?").<account-id>.tmprl.cloud/prometheus).references/capacity-throttling.md (opens in a new tab)references/cloud-metrics-catalog.md (opens in a new tab)references/diagnosis-examples.md (opens in a new tab)references/integrations.md (opens in a new tab)references/migration-v0-to-v1.md (opens in a new tab)references/openmetrics-endpoint.md (opens in a new tab)references/ops-diagnostics-reference.md (opens in a new tab)references/sdk-metrics.md (opens in a new tab)references/self-hosted-monitoring.md (opens in a new tab)references/service-health-monitoring.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/worker-health-monitoring.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub temporalio/claude-temporal-plugin --plugin temporal5 skills in this plugin
/temporal-cloud-setupSet up Temporal Cloud and run a sample Workflow on it for the user, doing the work end to end. Use when the user wants to set up Temporal Cloud, get started on Temporal Cloud, install the unified Temporal CLI (prerelease cloud-cli), create a Cloud namespace or API key, clone a money-transfer sample app, write the client config TOML, or connect a local Worker to Temporal Cloud and run a sample Workflow. This is the Cloud setup path, not the local learning path (see temporal-getting-started). Covers Python, TypeScript, Go, Java, .NET, Ruby, and Rust SDKs./temporal-developerDevelop, debug, and manage Temporal applications across Python, TypeScript, Go, Java, .NET, PHP, Ruby, and Rust. Use when the user is building workflows, activities, workers, or background job queues with a Temporal SDK, debugging issues like non-determinism errors, stuck workflows, or activity retries, using Temporal CLI, Temporal Server, or Temporal Cloud, running Temporal with Docker Compose, instrumenting Workers and Clients (metrics export, tracing, logging, Worker heartbeat settings), using Nexus, or working with durable execution concepts like signals, queries, heartbeats, versioning, continue-as-new, child workflows, or saga patterns. Also use when the user mentions "run a Temporal workflow from the CLI", "start a dev server", "run temporal server start-dev", "temporal workflow start", "temporal workflow execute", "temporal workflow signal", "temporal workflow query", "temporal workflow update". Not for metric queries or alerts (temporal-observability) or serverless Workers (temporal-serverless).Other plugins' skills for the same job