Files
nexus/wiki/concepts/CloudWatch-Agent.md

32 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "CloudWatch Agent"
type: concept
tags: [AWS, monitoring, EKS, logging, metrics, CloudWatch]
last_updated: 2026-04-28
---
## Definition
CloudWatch Agent 是 AWS 提供的统一代理程序,用于从 EC2 实例和 EKS 集群收集系统级指标和日志,并将其发布到 Amazon CloudWatch。它支持收集标准系统指标CPU/内存/磁盘/网络)以及自定义应用指标,是 EKS 监控栈的核心组件之一。
## Key Mechanisms
- **指标收集**CPU、内存、磁盘、网络等系统级指标以及自定义应用指标
- **日志收集**:从文件系统或容器日志收集日志数据
- **配置灵活性**:通过 SSM Parameter Store 或配置文件管理代理配置
- **EKS 集成**:在 EKS 中作为 DaemonSet 部署在每个节点上,与 Container Insights 协同工作
- **Container Insights**启用后自动发布容器级指标CPU/内存/磁盘/网络/容器进程)
## Relationship with Other Monitoring Components
CloudWatch Agent 是 EKS 监控数据采集层:
- CloudWatch Agent → 收集原始指标/日志
- FluentBit → 处理并转发日志到 CloudWatch Logs 或 OpenSearch
- Container Insights → 聚合容器指标到 CloudWatch
- Grafana → 从 CloudWatch/OpenSearch 可视化展示
## Sources
- [[ctp-topic-70-eks-deployment-using-iac]]
- [[ctp-topic-42-grafana-observability-dashboard]]
- [[ctp-topic-67-cloud-native-observability-using-opentelemetry]]