This change updates the functions so that they work with the most up to date
OpenStack SDK, and adds an elasticsearch output format.
Tests have been udpated to pass newer versions of flake8 and py3
Zuul project config has been added
Change-Id: If46d3fb8e2b2e4aa5e21bf7da470945b05d216cf
Signed-off-by: cloudnull <kevin@cloudnull.com>
In PR [1] the default for insecure was set to False. This commit
updates the sample configuration file to match that default.
NOTE: We also mock out test_insecure as is done in test_secure so that
the test doesn't actually rely on what is set in openstack.ini to
pass.
[1] https://review.openstack.org/#/c/474366/
Change-Id: I5257be8cfb9483ac7dd02b893e4a22a2ee46bbf7
OSA deployments do not come with a 'nova' project by default,
which means that if a user haves this in their configuration while
testing monitorstack on a OSA deployment, it will fail trying to
authenticate. This commit removes the reference.
Change-Id: Ia15759f116ff733d2a2fb62ce0c9fc28c1731786
Inline comments are not automatically removed when config options are
parsed. This can lead to difficult to debug errors if the example config
is used directly.
Change-Id: I23ecd32a0f14a7d8ba36a7cf17c47ac3814e7f19
The 'insecure' option was being read in as a string without being
converted to a boolean, preventing it from ever being able to be set to
False. The default value has also been changed to False, so that
verification of certificates must be explicitly disabled.
Change-Id: Ic68b870ea8d5e2e3451ea7915407fabb918efe72
The change implements several fixes so that monitor stack can be run in
OpenStack environments supporting both V2 and V3 authentication.
All of the plugins now have a proper name lookup and will pull from a local
cache instead of hammering the API on every request.
The Local caching functionlaity used to be tied to the python shelve
module. Due to issues with Python 3.5 and shelves the library was
replaced with the diskcache lib which implements a caching interface
supporting both py2.7+.
Tests have been added in support of all additions.
Tests have been added for the os_utils module which should bring it
within ~98% of completeness.
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The following plugins add a basic OpenStack API framework which is used
to pull metrics for nova vm quotas and usage for RAM, vCPUs, disk, and
instance count.
added codecov.yml
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>