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

推荐订阅源

WordPress大学
WordPress大学
博客园 - 司徒正美
宝玉的分享
宝玉的分享
阮一峰的网络日志
阮一峰的网络日志
The Cloudflare Blog
月光博客
月光博客
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
雷峰网
雷峰网
博客园 - 叶小钗
量子位
IT之家
IT之家

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 your Fargate container logs with FireLens and Dat...
Mallory Mooney · 2019-11-04 · via Datadog | The Monitor blog
Mallory Mooney

Mallory Mooney

To centralize logging from your entire stack—from traditional infrastructure to serverless components—Datadog is announcing native support for the launch of FireLens for Amazon ECS. FireLens streamlines logging by enabling you to configure a log collection and forwarding tool such as Fluent Bit directly in your Fargate tasks.

We’ve partnered with AWS to provide built-in Fluent Bit support for Datadog so that you can now seamlessly route container logs from AWS Fargate. Once your logs are flowing into Datadog, you can monitor them alongside other Fargate metrics to get visibility into your containerized services.

Datadog’s new Fluent Bit plugin helps you monitor Fargate container logs alongside your container metrics in dashboards.
Custom Fargate dashboard
Datadog’s new Fluent Bit plugin helps you monitor Fargate container logs alongside your container metrics in dashboards.

Configure Fluent Bit directly in your Fargate tasks

In order to start forwarding Fargate container logs to Datadog with Fluent Bit, you will need to specify a new container definition for your Fargate task:

"containerDefinitions": [{

"essential": true,

"image": "amazon/aws-for-fluent-bit:latest",

"name": "log_router",

"firelensConfiguration": {

"type": "fluentbit",

"options": {

"enable-ecs-log-metadata": "true"

}

}

}]

This will create a FireLens container using Amazon’s Fluent Bit image so you can use Fargate task definitions to route logs with Fluent Bit. The essential parameter ensures that containers that rely on this configuration won’t continue running if the FireLens container stops for any reason. The enable-ecs-log-metadata option enables FireLens to automatically detect metadata from Fargate and append it to your logs, such as the ECS cluster and the ECS task definition associated with the container that generated the log.

Then, in the same Fargate task, create a new log configuration that uses AWS FireLens as the log driver and specifies output options for Fluent Bit:

"logConfiguration": {

"logDriver": "awsfirelens",

"options": {

"Name": "datadog",

"apiKey": "<DATADOG_API_KEY>",

"dd_service": "my-httpd-service",

"dd_source": "httpd",

"dd_tags": "project:example",

"TLS": "on",

"provider": "ecs"

}

}

You can find your API key in your Datadog account. The dd_service and dd_source options associate your container logs with a specific service and source in Datadog. The service should be the name of the service that is generating your logs (e.g., my-httpd-service), while the source should be the underlying technology for the service (e.g., httpd). The source option will automatically trigger a log processing pipeline in Datadog for your integration (if available). You can also add tags to your logs (e.g., project:example) to help you easily find, filter, and analyze them in Datadog. The provider option maps metadata from ECS to Datadog tags.

Monitor your Fargate tasks in Datadog

Whenever a Fargate task runs, Fluent Bit will automatically route the container logs to Datadog so that you can begin monitoring them. These logs contain information about all of the containers managed by your Fargate tasks, including the container name and the associated ECS cluster. Datadog will also automatically ingest any additional tags you’ve added to your Fluent Bit configuration or Fargate tasks so you can easily sift through and analyze your logs.

Explore Fargate tasks in Log Explorer

If you’ve enabled Datadog’s Fargate integration, you can monitor your logs alongside metrics from all of your Fargate containers, such as CPU and memory usage. In the Live Container view, resource metrics are graphed at a two-second resolution so you can detect critical performance spikes in your container infrastructure. You can also easily stream your logs from within any container.

And with Autodiscovery, Datadog automatically detects containerized services on Fargate and configures Datadog Agent checks for 1,000+ integrations like Redis and NGINX, so you can easily start collecting and analyzing key service metrics.

Start monitoring Fargate tasks with FireLens and Fluent Bit

Datadog’s Fluent Bit plugin for FireLens is readily available for forwarding logs from your Fargate applications and provides a seamless way to monitor and explore your logs alongside metrics from your containerized services. See our AWS Fargate monitoring guide for more information and follow these steps to start forwarding logs to Datadog. If you’re not yet using Datadog, you can sign up for a free trial today.