This program is now deprecated.
Project description
This script is deprecated.
Machine Stats for Hypervisors (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's discovery process. A common use case is to use this to integrate your KVM-based virtual machine inventory into the Tidal Accelerator Platform.
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)
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
- CPU count
- RAM allocated (GB)
- RAM used (GB)
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+ssh://me@10.0.0.1/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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file virt_stats-3.0.0.tar.gz.
File metadata
- Download URL: virt_stats-3.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49bb2b76ab69a6a8f943d4f11c6f7e108378721e2e0ad19f00268ca3eae15eb6
|
|
| MD5 |
250f8d36bd5c39dd709ac6b9fc091467
|
|
| BLAKE2b-256 |
39d3fe26a4d1898f8dfe4454b3d908b25c1b6ba0282905c055ab394e40bf5eb1
|
File details
Details for the file virt_stats-3.0.0-py3-none-any.whl.
File metadata
- Download URL: virt_stats-3.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
258e25da7c69032fde4109be696c95f940c6e0e6e31935bac1e77dfbd176a62d
|
|
| MD5 |
d815ea2041d6067291b3bfa816d95fe6
|
|
| BLAKE2b-256 |
a348a889926c903f97e987b3d13673ca6dc0237771a1f801c5e16549aef483ef
|