Skip to main content

Simple view of vCenter data

Project description

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

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

vcenter-info-0.0.3.tar.gz (190.8 kB view details)

Uploaded Source

File details

Details for the file vcenter-info-0.0.3.tar.gz.

File metadata

  • Download URL: vcenter-info-0.0.3.tar.gz
  • Upload date:
  • Size: 190.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for vcenter-info-0.0.3.tar.gz
Algorithm Hash digest
SHA256 69da2afb1fac5147112312efef7a01a138afce34cfbf0120ebb919bd99e10736
MD5 62252c6c5a97dbf1b3e028dd6992aa54
BLAKE2b-256 0c9b6926000d8c36142cd11d35a6f89334b00d9954dcd1a2b888be0ec97d4bdb

See more details on using hashes here.

Supported by

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