# Should I prefer beats or Elastic Agent for monitoring application deployed using docker stack and not kubernetes?

**URL:** <https://discuss.elastic.co/t/should-i-prefer-beats-or-elastic-agent-for-monitoring-application-deployed-using-docker-stack-and-not-kubernetes/298079>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [February 23, 2022, 7:43pm UTC](https://discuss.elastic.co/t/should-i-prefer-beats-or-elastic-agent-for-monitoring-application-deployed-using-docker-stack-and-not-kubernetes/298079 "2022-02-23T19:43:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Abnave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahesh_abnave/32/102143_2.png) [@Mahesh\_Abnave](https://discuss.elastic.co/u/Mahesh_Abnave)\
**Post date:** [February 23, 2022, 7:43pm UTC](https://discuss.elastic.co/t/should-i-prefer-beats-or-elastic-agent-for-monitoring-application-deployed-using-docker-stack-and-not-kubernetes/298079/1 "2022-02-23T19:43:20Z")

</div>

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](https://www.elastic.co/guide/en/fleet/current/elastic-agent-container.html) 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](https://www.elastic.co/guide/en/fleet/current/beats-agent-comparison.html) 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](https://elastic.co/guide/en/fleet/current/elastic-agent-configuration.html) 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](https://www.elastic.co/guide/en/fleet/current/install-standalone-elastic-agent.html) 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 should I prefer in this case? Beats or Elastic Agent?

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [February 28, 2022, 9:07am UTC](https://discuss.elastic.co/t/should-i-prefer-beats-or-elastic-agent-for-monitoring-application-deployed-using-docker-stack-and-not-kubernetes/298079/2 "2022-02-28T09:07:08Z")

</div>

Hi @Mahesh_Abnave!

I will try to cover your questions.  
Q1: Yes, standalone Agent will just communicate with ES directly shipping data to it.

Q2: Yeap, standalone Agent acts like a single Beat in that case.

Q3: I would say whatever that fits better to your experience but keep in mind that most recent features are coming with Elastic Agent firstly so if you want to be on the edge you can take this way by now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 28, 2022, 11:07am UTC](https://discuss.elastic.co/t/should-i-prefer-beats-or-elastic-agent-for-monitoring-application-deployed-using-docker-stack-and-not-kubernetes/298079/3 "2022-03-28T11:07:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
