A simple and effective way to gather machine statistics (RAM, Storage, CPU, etc.) from virtual environment
Project description
Machine Stats for Virtual environments (Virt-Stats)
A simple and effective way to gather guest VM statistics (hostname, IP addresses) from a libvirt-based environment as a first layer of a Tidal Migrations discovery process.
Prerequisutes
- Python 3+
- libvirt >=3.0.0 installed on both operator machine (i.e where you run Virt-Stats) and on remote machine (i.e where you run your virtual environmnent and guest VMs)
- QEMU guest agent installed and running on guest VMs (optional).
Installation
Install locally in a Python 3 environment:
python3 -m pip install virt-stats
Data captured
As of now Virt-Stats captures the following metrics:
- Hostname
- IP Addresses
Usage
virt-stats --connection URI
Please refer to the Connection URIs documentation for additional information.
Output
Virt-Stats outputs a JSON document suitable to be piped to Tidal Tools:
virt-stats --connection qemu:///system | tidal sync servers
Troubleshooting
virt-stats: command not found
If running Virt-Stats as a CLI failed, try running it as the following:
python3 -m virt-stats
Contributing
If you're interested in contributing to Virt-Stats, please check our contributing guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for virt_stats-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 628715f7805f76029bc953d6c25bfa69d208531543291288797c0debdf25417d |
|
MD5 | 4bcb7a2f80bd39d8142f879fd7189310 |
|
BLAKE2b-256 | 35967f7203e1ad7b45317911f419a54deb81d2a54959c78b82ae4bca06df8ae5 |