New to datadog so I'm just really confused. First configuration was fast and simple. However as I want some app specific charts, it doesn't seem as clear as before for my current scenario.
We have one host with several docker machines, one for each service: - nginx - varnish - apache - database (mysql)
We've installed datadog client inside the host and also docker integration and everything works fine. What I don't get is how get metrics from apache or varnish, or whatever service that is inside docker. Reading the docs in varnish for example you have to execute:
$ sudo usermod -G varnish -a dd-agent
However, where should I run the command? dd-agent user exists only in the host, not in the docker container. Varnish is just the other way round.
Should I need to install the agent on each container?
It would be considered as another host for pricing?
In mysql case, I just have to configure the agent:
init_config:
instances:
- server: localhost
user: datadog
pass: <UNIQUEPASSWORD>
tags:
- optional_tag1
- optional_tag2
options:
But as my host and the container are in separate routes, should I create a new docker container with the agent so it cat get to db container (changing server field)? Is it considered again as another host?