Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker containers monitoring

Soulou
April 25, 2015

Docker containers monitoring

Presented first during the APIdays and APIStrat Berlin 2015

Linux cgroups and namespaces APIs how to get metrics from containers without Docker.

Soulou

April 25, 2015
Tweet

More Decks by Soulou

Other Decks in Technology

Transcript

  1. - Memory usage - CPU percentage - Disk IO -

    Network bandwidth What metrics?
  2. How to get a CPU percentage? /proc/stat User nice system

    idle iowait irq softirq 7277 51882 500481 6104557 72847 217 168631 Sum of values = CPU usage since system boot (in 1/100th second)
  3. Interface Received bytes packets errs … eth0 12520750 102418 0

    lo 7796 560 0 Interface Transmit bytes packets errs … eth0 641338 165423 0 lo 97796 250 0 Netstat in namespace