Navigate to Atatus Dashboard --> Settings --> Account Settings --> License Keys. You can obtain the Infra License Key.

Atatus agent in Docker Compose configuration

By adding Atatus infra agent service configuration in your YAML file, you can monitor all metrics and logs of your Docker containers.

In below configuration, Replace lic_infra_*****" with your license key in the environment variable.

services:

  atatus-infra-agent:
    image: atatus/atatus-infra-agent:3.1.0
    environment:
      ATATUS_LICENSE_KEY: "lic_infra_*****"
    volumes:
      - "/var/lib/docker/containers:/var/lib/docker/containers:ro"
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      - "/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro"
      - "/proc:/hostfs/proc:ro"
      - "/:/hostfs:ro"
    command: ["-c", "/etc/atatus-infra-agent/", "-system.hostfs=/hostfs"]
    user: root