docker monitoring with 1.39 config steps

Hi,

we are running docker on Ubuntu 22 LTS with the following netdata docker-compose.yml

version: '3'
services:
  netdata:
    image: netdata/netdata:edge
    container_name: netdata
    hostname: docker.devcon.cc
    ports:
- 19999:19999
    restart: unless-stopped
    environment:
- DOCKER_HOST=proxy:2375
    cap_add:
- SYS_PTRACE
    security_opt:
- apparmor:unconfined
    volumes:
- netdataconfig:/etc/netdata
- netdatalib:/var/lib/netdata
- netdatacache:/var/cache/netdata
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
    environment:
- NETDATA_CLAIM_TOKEN=xyz
- NETDATA_CLAIM_URL=https://app.netdata.cloud
- NETDATA_CLAIM_ROOMS=
  proxy:
    image: tecnativa/docker-socket-proxy
    volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
- CONTAINERS=1

volumes:
  netdataconfig:
  netdatalib:
  netdatacache:

I dont see the docker containers under VMs/Containers in the local and cloud dashboard.

Is there anything additional to be configured via edit-config because the default config in the netdata container only shows:

jobs:                                     
  - name: local                           
    address: 'unix:///var/run/docker.sock'                                  
    timeout: 2                
    collect_container_size: no               
~                

and cant find any specific documentation on it.

Thanks

Hi @Kofl ,

Welcome to Netdata forums, sorry for the late reply.

I dont see the docker containers under VMs/Containers in the local and cloud dashboard.

Could you elaborate on what you mean? On Cloud if you go to the Containers & VMs section on a chart, example cpu (cgroup.cpu_limit), and click on cgroups what do you see?

You can check on our demo environment here

Screen of what I was mentioning above:

1 Like

Thanks a lot for the response, found now the chart. We are missing the container names.
Do we have to label them specially in docker-compose?

Glad that it helped @Kofl.
For the container names we have these tips on the connect nodes modal on Cloud which points to links for:

  1. Docker container names resolution
  2. Change the default hostname

Guess you’re looking for the 1st one.

1 Like