Python client library for Rackspace Cloud Monitoring based on Apache Libcloud.
Python Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo/web (fix): Update code to utilize latest libcloud features Aug 9, 2016
rackspace_monitoring bumping version Mar 10, 2017
test Fixing test Mar 10, 2017
.coveragerc Add .coveragerc. Dec 13, 2011
.gitignore bump to 0.5.4 Oct 29, 2013
.travis.yml
CHANGES.md bumping version Mar 10, 2017
LICENSE Add basic layout Nov 4, 2011
MANIFEST.in Update MANIFEST.in to correctly include all the files in the distributed Jun 16, 2013
NOTICE
README.md Update README.md Jun 2, 2012
requirements.txt fix(requirements): Properly tell pip to use the requirements listed i… Dec 29, 2014
setup.py
tox.ini (fix): Add backports.ssl_match_hostname dependency Aug 9, 2016

README.md

rackspace-monitoring

rackspace-monitoring is a Python client library for Rackspace Cloud Monitoring built on top of Apache Libcloud.

Installation

Library can be installed using pip:

pip install rackspace-monitoring

Usage

from pprint import pprint

from rackspace_monitoring.providers import get_driver
from rackspace_monitoring.types import Provider

Cls = get_driver(Provider.RACKSPACE)
driver = Cls('username', 'api key')
pprint(driver.list_entities())

Certificate verification

Libcloud verifies server SSL certificate by default. This means you need to have the correct CA certificate files installed on your computer for this library to work.

If Libcloud cannot find CA certificate files, you will see an error similar to the one below:

"RuntimeError: No CA Certificates were found in CA_CERTS_PATH."

This can be addressed by installing the CA certificate files. Below you can find the names of the packages which include CA certificate files.

  • openssl on CentOS/Fedora (yum)
  • ca-certificates on Debian/Ubuntu/Arch/Gentoo (apt-get)
  • ca_root_nss on FreeBSD (ports)
  • curl-ca-bundle on Mac OS X (ports)

Testing, style, code coverage

Running tests

sudo tox

This will run tests on all the supported versions.

If you only want to run tests for a single version use:

sudo tox -e <version>

Where version is one of:

  • py25
  • py26
  • py27
  • pypy
  • py32

Checking pep8 compliance

python setup.py pep8

Generating code coverage report

python setup.py coverage

Build status

Build Status

Issues, Feedback

Please use Github issue tracker or send an email to monitoring@rackspace.com.