Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

virt_stats-3.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

virt_stats-3.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for virt_stats-3.0.0.tar.gz
Algorithm Hash digest
SHA256 49bb2b76ab69a6a8f943d4f11c6f7e108378721e2e0ad19f00268ca3eae15eb6
MD5 250f8d36bd5c39dd709ac6b9fc091467
BLAKE2b-256 39d3fe26a4d1898f8dfe4454b3d908b25c1b6ba0282905c055ab394e40bf5eb1

See more details on using hashes here.

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

Hashes for virt_stats-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 258e25da7c69032fde4109be696c95f940c6e0e6e31935bac1e77dfbd176a62d
MD5 d815ea2041d6067291b3bfa816d95fe6
BLAKE2b-256 a348a889926c903f97e987b3d13673ca6dc0237771a1f801c5e16549aef483ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page