惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
B
Blog
P
Proofpoint News Feed
美团技术团队
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
有赞技术团队
有赞技术团队
小众软件
小众软件
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
罗磊的独立博客
L
LangChain Blog
GbyAI
GbyAI
腾讯CDC
T
The Blog of Author Tim Ferriss
Microsoft Security Blog
Microsoft Security Blog

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Monitor the health of your Temporal Server with Datadog
Candace Shamieh, Jacob LeGrone · 2023-09-13 · via Datadog | The Monitor blog

Temporal is an open source programming model that enables users to write and run scalable and reliable cloud applications. The Temporal Platform consists of a Temporal Cluster and Worker Processes, which together create a runtime for reentrant processes called Workflow Executions. Temporal’s workflows are resilient programs that execute tasks and react to external events, including timers and signals.

As an early adopter of Temporal ourselves, we’ve learned the intricacies of the platform and understand how to take advantage of all Temporal has to offer. One key to success is being able to view and analyze metrics and logs from all components of your Temporal Server in a centralized location. That’s why we are pleased to announce our new integration with the Temporal Server, a key component of the Temporal Cluster.

In this post, we’ll discuss how you can use our integration to:

Visualize the health of every service in your Temporal Server

Once you’ve connected the Datadog Agent and configured the integration to begin collecting logs and metrics from your Temporal Server, you can use our out-of-the-box (OOTB) dashboard to view and analyze the health of your environment.

The Temporal Server includes four independently scalable services: frontend gateway for rate limiting, routing, and authorization, history subsystem to maintain data, matching subsystem to host Task Queues for dispatching, and Worker Service for internal background workflows. Each of these components emits hundreds of metrics and even more logs.

You can leverage the information in the OOTB dashboard to gain insight into the performance of these services with metrics such as sync match rate and average latency to investigate early if they’re less than ideal.

Temporal Server Overview dashboard

Let’s say you’re looking at the dashboard and notice that your average persistence latencies are too high and your sync match rate is low. For context, persistence latencies refer to the latencies introduced by operations against the database. Sync match rate measures the percentage of times that your Worker’s poller successfully receives work from your matching service’s memory. While investigating, you see that a number of created tasks failed to deliver synchronously to a poller, and while the tasks waited for a poller to become available, they were written to your database as backlog. You determine that this occurred because your Workers are underprovisioned and decide to take action to correct the issue.

Our OOTB dashboard also displays a detailed list of your Temporal Server logs, providing visibility into exceptions and warnings so you can intervene early and prevent an impact to production.

View of frontend, matching, history, and other logs from Temporal Server Overview dashboard

When applicable, the logs are divided into four categories: frontend gateway, history subsystem, matching subsystem, and other (Worker Service). The granularity that these categories provide makes it easier for you to know where to start investigations and allows you to quickly identify whether a recent change or deployment is impacting the performance of multiple services. For example, if you’ve deployed each of your Temporal services in a separate pod in a Kubernetes cluster, our OOTB dashboard conveniently provides the information that you need to get an accurate depiction of overall cluster health.

If you’d like to get a more detailed and holistic picture of your Temporal Cluster, which includes your Apache Cassandra, MySQL, Elasticsearch, or PostgreSQL database, you can install those individual integrations in Datadog and start collecting metrics and logs from those sources, too. For example, if you see that the metric temporal.server.persistence.errors.count shows that a high amount of Temporal Persistence database requests have returned an error, you can easily pivot to our MySQL OOTB dashboard to continue your investigation.

Our Temporal integration also includes four preconfigured monitors that will alert you when it detects performance issues. Once enabled, the Temporal monitors will send you insightful alert notifications about your Temporal Server, helping you to maintain a healthy, secure environment.

Our Temporal recommended metric monitors will notify you if frontend, matching, history, or persistence latency is elevated. You can also clone our OOTB Temporal dashboard to make it your own and edit however you’d like. For example, you can add a Monitor Summary widget to your cloned dashboard so that you can view all aspects of your Temporal environment in one convenient location.

Search results showing Temporal recommended monitors for frontend, matching service, history service, and persistence latency

Gain efficiency with our Temporal integration

Monitoring your Temporal Server with our integration allows you to quickly identify and resolve issues, maintain optimal Worker performance, and enhance your security strategy. You’ll have a convenient way to visualize each component of your Temporal Server with our OOTB dashboard, and our recommended monitors will help you verify the reliability and efficiency of your workflows.

You can find a comprehensive list of metrics and configuration instructions in our Temporal documentation. If you don’t already have a Datadog account, you can sign up for a 14-day free trial today.