Skip to content

Script for gathering Docker containers names and stats

Notifications You must be signed in to change notification settings

shkadov/DockerStats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

DockerStats

Script for gathering Docker containers names and stats #!/bin/bash

Gathering docker containers stats for zabbix

delim='-------------------------------' stats=0 #while [ 1 ]; do declare -a name=( $(docker ps --format "table {{.ID}}\t{{.Names}}" | sed 1d |awk '{print $2}') ) for contName in ${name[@]} do stats=docker stats $contName --no-stream | awk '{print $2,$8}'|sed 1d| sed 's/%//g' echo "$contName" "$stats" #echo "$delim" done #sleep 5 #done

About

Script for gathering Docker containers names and stats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published