我应该选择 Beats 还是 Elastic Agent 来监控使用 docker stack 而不是 kubernetes 部署的应用程序?

发布于 2025-01-10 01:11:04 字数 1369 浏览 0 评论 0原文

我有一个应用程序在一组 docker 容器中启动并运行(使用 docker 堆栈而不是 kubernetes 部署)。我想对此应用程序进行性能监控。我很困惑是否应该选择 Beats 还是 Elastic Agent。

页面显示:

当 Elastic Agent 在容器内运行时,无法通过 Fleet 进行升级,因为它期望容器本身进行升级。

页面显示:

独立模式 - 所有策略均以 YAML 文件形式手动应用到 Elastic Agent。

Q1. 这是否意味着在独立模式下,Elastic Agent“根本”不由 Fleet 管理?或者管理的某些部分

页面显示:

独立弹性代理是在安装它们的系统上本地手动配置和管理的。当您由于公司的安全要求或因为您更喜欢使用其他配置管理系统而对集中管理 Fleet 中的代理不感兴趣时​​,它们非常有用。

页面显示:

要在独立模式下运行 Elastic Agent,请在要监控的每台主机上安装该代理,并在安装该代理的系统上本地手动配置该代理。您负责管理和升级代理。

Q2. 这是否意味着对于监控 docker 容器(使用 docker stack 而不是 kubernetes 部署),beats 和 Elasticagents 在“集中”管理方面没有区别?唯一的区别是我必须单独配置不同的节拍,而 Elastic Agent 可以避免这种情况?

Q3.在这种情况下什么是更好的? Beats 还是 Elastic Agent?

I have an application up and running in set of docker containers (deployed using docker stack and not kubernetes). I want to do performance monitoring for this application. I am confused about whether I should go for beats or Elastic Agent.

This page says:

When Elastic Agent runs inside of a container, it cannot be upgraded through Fleet as it expects that the container itself is upgraded.

This page says:

Standalone mode  — All policies are applied to the Elastic Agent manually as a YAML file.

Q1. Does this mean that in standalone mode Elastic Agent is not "at all" managed by Fleet? Or some part of management

This page says:

Standalone Elastic Agents are manually configured and managed locally on the systems where they are installed. They are useful when you are not interested in centrally managing agents in Fleet, either due to your company’s security requirements, or because you prefer to use another configuration management system.

This page says:

To run an Elastic Agent in standalone mode, install the agent on each host you want to monitor and manually configure the agent locally on the system where it’s installed. You are responsible for managing and upgrading the agents.

Q2. Does this mean that for monitoring docker containers (deployed using docker stack and not kubernetes), there is no difference between between beats and Elastic agents in terms of "central" management? Only difference would be that I have to configure different beats separately, which is avoided with Elastic Agent?

Q3. What is preferrable in this case? Beats or Elastic Agent?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

め七分饶幸 2025-01-17 01:11:04
  1. Standalone不受fleet管理,“无法通过Fleet升级”是指升级elastic-agent的实际版本,仍然可以更新agent策略。
  2. 是的,您需要通过容器上的配置文件来配置beats,其中可以使用一些环境变量设置弹性代理以将其注册到策略中,然后通过 Kibana 集中管理和更新该策略。
  3. 两者都是有效的,但弹性代理允许在容器通过中心位置运行后更新策略,因此是我的选择。
  1. Standalone is not managed by fleet, the "it cannot be upgraded through Fleet" refers to upgrading the actual version of the elastic-agent, you can still update the agent polices.
  2. Yes you would need to configure beats via a config file on the container where elastic agent can be setup with some env variables to enroll it in a policy, then that policy is centrally managed and updated via Kibana.
  3. Both are valid but elastic agent allows updating the policy after the container is running via a central location and therefore would be my choice.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文