我已按照以下文章进行操作,并为 AWS 中的 EKS 集群设置了容器见解和 Fluentd。我可以看到
1.在EKS中设置云手表代理demonset
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-metrics.html
我可以看到为 :
创建的日志组/aws/containerinsights/EKS-CLUSTER-NAME/application
/aws/containerinsights/EKS-CLUSTER-NAME/dataplane
/aws/containerinsights/EKS-CLUSTER-NAME/host
/aws/containerinsights/EKS-CLUSTER-NAME/performance
但是当我在 cloudwatch 中选择 Container Insights 时,它不会显示性能指标,也不会显示地图/资源。知道为什么吗?
NAME READY STATUS RESTARTS AGE
pod/cloudwatch-agent-98mht 1/1 Running 0 86m
pod/fluent-bit-gq6sk 1/1 Running 0 66m
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/cloudwatch-agent 1 1 1 1 1 <none> 86m
daemonset.apps/fluent-bit 1 1 1 1 1 <none> 66m
在我看来,你必须将集群名称和区域名称放入配置中,但它不会被创建,因为它与你所做的不匹配。
您应该检查“kubectl log [podname]”,但通常情况就是这样。