Skip to content

Instantly share code, notes, and snippets.

@maurobaraldi
Created September 25, 2019 00:18
Show Gist options
  • Save maurobaraldi/c7e3d67b8076d3cc987d5f4621d04c7f to your computer and use it in GitHub Desktop.
Save maurobaraldi/c7e3d67b8076d3cc987d5f4621d04c7f to your computer and use it in GitHub Desktop.
Docker info for monitoring

Docker info for monitoring

Node/Cluster

Node Info

Information about node (docker/swarm daemon) info.

Addresses

All but containers and images

http://0.0.0.0:2376/version

Containers and images

http://0.0.0.0:2376/v1.39/info

  • name
  • version (system version)
  • api version
  • architecture
  • go version
  • kernel version
  • os
  • containers (quantity)
    • total
    • running
    • paused
    • stoped
  • images
  • debug enabled true/false

Network

Address

http://0.0.0.0:2376/v1.39/info

  • interfaces (this is a list)
  • IPv4 forwarding (true/false)
  • IPv4 address

CPU

http://0.0.0.0:2376/v1.39/info

  • CpuCfsPeriod (Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host.) true/false
  • CpuCfsQuota (Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host.) true/false
  • CPUShares (Indicates if CPU Shares limiting is supported by the host.) true/false
  • CPUSet (Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host.) true/false
  • number of CPUs

Logging

Address

http://0.0.0.0:2376/v1.39/info

  • logging driver

Memory

Address

http://0.0.0.0:2376/v1.39/info

  • total memory (available for host)
  • memory limit (enabled) true/false
  • swap limit (enabled) true/false
  • kernel limit (enabled) true/false

Warnings

Address

http://0.0.0.0:2376/v1.39/info

  • list of warning messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment