I am trying my hands on MetricBeat and have been able to send the host system metrics to an Elastic Search cluster. But, I am facing issues with sending docker containers metrics by metric beat. Also, I am not really sure as to how should I run metric beat (as a separate docker container or as a standalone application) for my use case.
My use case is: I have a host machine (on cloud), and I have multiple docker containers (of applications) running on a single host. Now, I want to send the docker metrics as well as the host metrics to an elastic search cluster (set up across different machines) . Now, I have a few questions:
- Is it possible to configure different docker containers in metricbeat.yml file?
- Is it better if I run metric beat as a docker container as compared to a application on the host machine? If yes, will I have to link all the different application containers and the host so that it is able to send the docker container metrics and the system metrics? (I am facing issues with running metric beat like this)