Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VictorRodriguez/b9260ad223b176c323363ac06d0afdde to your computer and use it in GitHub Desktop.
Save VictorRodriguez/b9260ad223b176c323363ac06d0afdde to your computer and use it in GitHub Desktop.
STX metrics example
vmrod@vmrod-VirtualBox:~/tools-contrib/stx-metrics$ python metrics.py
===================================
HOST INFO
===================================
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
===================================
System Boottime
===================================
kernel space boot time = 3.456s
user space boot time = 16.027s
===================================
Hard Drive Footprint
===================================
total_hd = 17G
used_hd = 13G
avail_hd = 3.3G
per_hd = 80%
===================================
Virtual Memory Footprint
===================================
Memory
total = 1.9G
used = 1.1G
Swap memory
total = 784M
used = 127M
===================================
CPU utilization
===================================
6.6%
6.0%
8.1%
7.7%
9.5%
7.3%
8.3%
5.9%
8.5%
7.7%
8.9%
8.9%
6.5%
5.9%
7.9%
6.7%
7.7%
8.7%
7.5%
5.3%
6.7%
8.3%
8.7%
8.9%
Average CPU utilization = 7.6%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment