我应该使用DaemonSet或Deployment for prometheus cwagent进行Fluent Bit



我正在尝试设置一个Prometheus CloudWatch代理,以从运行在Amazon EKS上的Fluent Bit中获取指标。我正在按照本指南使用Prometheu斯设置CloudWatch代理:https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-Setup-configure.html.在本指南中,prometheus代理被创建为部署。

我的Fluent Bit在EKS上部署为DaemonSet。我读过这个答案,解释了部署与DaemonSet的区别:守护程序集和部署之间的区别

但我仍然很难理解什么是普罗米修斯制剂的最佳用途。在我看来,由于Fluent Bit是一个DaemonSet,我希望Prometheus代理也是一个DaomonSet,以确保它能从Fluent Bit中可能产生的POD中获取指标。我说得对吗?

...since Fluent Bit is a DaemonSet, I would want Prometheus agent to be a DaemonSet too to make sure it will grab metrics from those PODs that might spawn in Fluent Bit. Am I right?

这是正确的,以便从集群中的每个FluentBit代理中废弃,并适应节点向外/向内扩展的情况。

最新更新