Skip to main content

vcenter-info - Simple view of vCenter data

Overview

This project is used for making some simple queries to one or more vCenter host and rendering the results in a simple way, as a npm-managed React app with Flask. There's also a console script that outputs vm statistics in influx line protocol format.

Package-based installation

Create a (python 3) virtualenv and install using one of the following methods:

From PyPi

$ pip install vcenter-info

From Source

$ python setup.py sdist
$ pip install dist/vcenter-info-x.y.z.tar.gz

Running

Configuration

Use config-example.json as a template to create a configuration file. When running the server an environment variable called CONFIG_FILENAME and containing the path to this configuration file must be present.

Starting the Server

CONFIG_FILENAME=config.json FLASK_APP=vcenter_info flask run

Note: if you are running from a source distribution and didn't install it in your virtualenv, you should execute the above from the top-level folder.

Alternatively, using the provided app.py might sometimes be convenient when developing:

CONFIG_FILENAME=config.json python vcenter_info/app.py

or:

CONFIG_FILENAME=config.json python -m vcenter_info.app

Running the Console Check

Usage: check-vcenter-vms [OPTIONS]

Options:
  --measurement TEXT  influx measurement name  [required]
  --config FILENAME   config filename  [required]
  --help              Show this message and exit.

Development Environment

These notes are for setting up a development environment.

Setup

Create a (python 3) virtualenv and install the requirements:

$ pip install -e .

... and, to install additional libraries used by the test scripts:

$ pip install -r requirements.txt

Set up the node environment:

npm install

Generate Javascript Bundle

In a fresh environment, or whenever the ui sources are changed:

npm run build

Metadata

Release files for vcenter-info 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vcenter-info 0.0.4
File Size Uploaded
vcenter-info-0.0.4.tar.gz 191.1 kB Details

Release files / vcenter-info-0.0.4.tar.gz

Download URL vcenter-info-0.0.4.tar.gz
Size 191.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3d6a51d89a3c651b15fe2e78e6da346a67475b3ba824722d7e74ad87d6711dd4
BLAKE2b-256 checksum
How to use checksums
f0c2fd68bf1814002deb4d175f2a22f104eac87cc4aad394c9636cf9616a3f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page