Docker container should have the below packages to be installed for the monitoring.
procps, net-tools, iotop and sysstat
To install packages inside docker container
Go into docker containers and install the packages one by one.
If we get the Unable to locate package error then execute the command apt-get update for debian /ubuntu and yum update for centos or RHEL. After update install the packages one by one.
On Debian, Ubuntu and Linux Mint
apt-get install procps
apt-get install net-tools
apt-get install iotop
apt-get install sysstat
On RedHat/CentOS and Fedora
yum install procps
yum install net-tools
yum install iotop
yum install sysstat
On Fedora 22+ Releases
dnf install procps
dnf install net-tools
dnf install iotop
dnf install sysstat
Windows
For Http Monitoring
1. Open the docker desktop and go to settings and enable the "Expose daemon on tcp://localhost:2375 without TLS" option and restart the docker desktop.
Linux
For Http Monitoring
1. Open the "docker.service" file and change the "ExecStart=" line to the below one
Syntax
ExecStart=<dockerdpath> -H fd:// -H tcp://<docker_installed_ip>:<docker_running_port>
Example
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://192.168.0.1:2375
2. Execute the command "systemctl daemon-reload" and restart "docker.service".
Applicare Controller
1. Login into Applicare Console and go to the Overview screen and click the Add button.
2. Enter the details and save.
a. Enter the Server IP
b. Enable Is Docker agent
c. Enter the Https Daemon Port
d. Click the "Apply" button.
3. All the Running containers will be added as a agent and whenever a new container start it will be added as a new agent.
4. After adding the containers go to the server analyzer screen and check the metrics.
Comments
0 comments
Please sign in to leave a comment.