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

推荐订阅源

人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
量子位
博客园 - 司徒正美
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
腾讯CDC
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
I
InfoQ
D
Docker
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
宝玉的分享
宝玉的分享
G
Google Developers Blog
GbyAI
GbyAI
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
H
Help Net Security

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
Introducing the Datadog Cluster Agent
Charly Fontaine · 2018-10-18 · via Datadog | The Monitor blog
Charly Fontaine

Charly Fontaine

As containers and orchestrators have surged in popularity, they have created highly dynamic environments with rapidly changing workloads—and the need for equally dynamic ways of monitoring them. After all, orchestration technologies like Kubernetes, DC/OS, and Swarm manage container workloads both at the node level and at the cluster level, which means that you need to gather insights from every layer to fully understand the state of your infrastructure. With that in mind, we are very excited to introduce the Datadog Cluster Agent, which is purpose-built to efficiently gather monitoring data from across an orchestrated cluster.

Cluster monitoring before the Datadog Cluster Agent

In order to help illustrate the use case for the Datadog Cluster Agent, let’s take a look at how Datadog users have traditionally collected and aggregated metrics from a Kubernetes cluster. Previously, every worker node in the cluster ran a Datadog Agent that collected data from two sources:

  • the kubelet, a local daemon that creates the workload on a node

  • the cluster’s control plane, which consists of the Kubernetes API server, the scheduler, the controller manager, and etcd

You can read more about the each of these components in the official Kubernetes documentation.

kubernetes monitoring with datadog before the cluster agent

Collecting node-level data from the kubelet

By monitoring the kubelet on each worker node, the Datadog Agent gives you insights into how your containers are behaving and helps you keep track of scheduling-related issues. The Agent also retrieves system-level data and automatically discovers and monitors applications running on the node.

Collecting cluster-level data from the API server

In addition to collecting these node-level metrics, each Datadog Agent individually queries the Kubernetes API server to collect data about the behavior of specific components, as well as to gather key metadata about the cluster as a whole.

Each Agent also retrieves the list of services that target the pods scheduled on that particular node, uses this data to map relevant application metrics to services, and then tags each metric with the appropriate pod name and service. Agents can also be configured to elect a leader that queries the API server regularly to collect Kubernetes events. Although this setup provided visibility into all the layers of your cluster, it put increasing load on the API server and etcd as the size of the cluster increased.

Enter the Datadog Cluster Agent

We developed the Datadog Cluster Agent to provide a streamlined, centralized approach to collecting cluster-level monitoring data. This is particularly beneficial for large Kubernetes clusters with hundreds or even thousands of nodes, because it significantly reduces the load on the API server, while still allowing you to surface valuable insights.

kubernetes monitoring with datadog after the cluster agent

The Cluster Agent acts as a proxy between the API server and the node-based Agents. This not only alleviates the direct load on the API server, but also enables node-based Agents to specifically focus on collecting node-level data, while a dedicated Cluster Agent collects cluster-level data from the control plane. The Cluster Agent relays cluster-level metadata to the node-based Agents, so that they can enrich their locally collected metrics with consistent tags across the cluster. And now that the node-based Agents no longer need to query this data from the API server, you can also reduce their RBAC rules to solely read metrics and metadata from the kubelet.

Streamline your monitoring of orchestrated clusters with the Datadog Cluster Agent.

The External Metrics Provider

We’re also excited to share that the Cluster Agent implements the External Metrics Provider interface to expose metrics from your Datadog account to Kubernetes. This gives you a completely automated way to leverage Kubernetes’ Horizontal Pod Autoscaling feature, based on the real-time health and performance data you’re collecting with Datadog (regardless of whether it comes from your cluster or from an external service like AWS ELB). For example, you can create a manifest that autoscales the number of replicas of a web server when the rate of requests per second exceeds a threshold. You can read more about this feature in the dedicated blog post.

Dogfooding the new Cluster Agent

While this project was initially driven by the needs of our customers, we have also been testing the Datadog Cluster Agent on our own Kubernetes infrastructure. After deploying the Datadog Cluster Agent on a cluster with hundreds of nodes and more than 20,000 pods and endpoints, we observed a substantial reduction of the load on our API servers.

Try the Datadog Cluster Agent

The Datadog Cluster Agent is now generally available—you can deploy it by following the guidelines in our documentation. If you are already using the Datadog Agent to monitor a Kubernetes cluster, this migration plan can help you roll out the new version of the node-based Agent and benefit from the Cluster Agent.

We would love to hear from you—reach out to our support team with any questions or feedback. As the code for the Cluster Agent is open source, feel free to contribute; instructions to build it can be found in this section of the documentation.

If you aren’t yet a Datadog customer, get started with a two-week, full-featured trial today.