我应该使用 DaemonSet 还是 Deployment for prometheus cwagent 来抓取 Fluent Bit 指标
Should I use DaemonSet or Deployment for prometheus cwagent for Fluent Bit metrics scraping
我正在尝试设置 Prometheus CloudWatch 代理以从 Amazon EKS 上 运行 的 Fluent Bit 抓取指标。我正在按照本指南使用 Prometheus 设置 CloudWatch 代理:https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-Setup-configure.html。在本指南中,prometheus 代理被创建为 Deployment。
我的 Fluent Bit 在 EKS 上部署为 DaemonSet。我读过这个解释 Deployment 与 DaemonSet 区别的答案:
但我仍然很难理解什么是最好的普罗米修斯代理。在我看来,由于 Fluent Bit 是一个 DaemonSet,我希望 Prometheus 代理也是一个 DaemonSet,以确保它会从那些可能在 Fluent Bit 中产生的 PODs 获取指标。我说的对吗?
...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 代理中删除并适应节点扩展 out/in 的情况。
我正在尝试设置 Prometheus CloudWatch 代理以从 Amazon EKS 上 运行 的 Fluent Bit 抓取指标。我正在按照本指南使用 Prometheus 设置 CloudWatch 代理:https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-Setup-configure.html。在本指南中,prometheus 代理被创建为 Deployment。
我的 Fluent Bit 在 EKS 上部署为 DaemonSet。我读过这个解释 Deployment 与 DaemonSet 区别的答案:
但我仍然很难理解什么是最好的普罗米修斯代理。在我看来,由于 Fluent Bit 是一个 DaemonSet,我希望 Prometheus 代理也是一个 DaemonSet,以确保它会从那些可能在 Fluent Bit 中产生的 PODs 获取指标。我说的对吗?
...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 代理中删除并适应节点扩展 out/in 的情况。