Skip to main content

OpenStack Observability Client

Project description

python-observabilityclient

observabilityclient is an OpenStackClient (OSC) plugin implementation that implements commands for management of Prometheus.

Development

Install your OpenStack environment and patch your openstack client application using python.

# if using standalone, the following commands come after 'sudo dnf install -y python3-tripleoclient'

su - stack

# clone and install observability client plugin
git clone https://github.com/infrawatch/python-observabilityclient
cd python-observabilityclient
sudo python setup.py install --prefix=/usr

Usage

Use openstack metric query somequery to query for metrics in prometheus.

To use the python api do the following:

from observabilityclient import client

c = client.Client(
            '1', keystone_client.get_session(conf),
            adapter_options={
                'interface': conf.service_credentials.interface,
                'region_name': conf.service_credentials.region_name})
c.query.query("somequery")

List of commands

openstack metric list - lists all metrics openstack metric show - shows current values of a metric openstack metric query - queries prometheus and outputs the result openstack metric delete - deletes some metrics openstack metric snapshot - takes a snapshot of the current data openstack metric clean-tombstones - cleans the tsdb tombstones

List of functions provided by the python library

c.query.list - lists all metrics c.query.show - shows current values of a metric c.query.query - queries prometheus and outputs the result c.query.delete - deletes some metrics c.query.snapshot - takes a snapshot of the current data c.query.clean-tombstones - cleans the tsdb tombstones

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

python-observabilityclient-0.0.4.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

python_observabilityclient-0.0.4-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file python-observabilityclient-0.0.4.tar.gz.

File metadata

File hashes

Hashes for python-observabilityclient-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fbf968ad766e1e0e3b16396f859fd9d4617c02bd867978d2fa8303f748211631
MD5 d7010becafaf4f25fcf49c4ea41dad73
BLAKE2b-256 fd15699d59fcb6e360b33b0ac899f86f1554c0a223c6b881c0158cd4d02735dc

See more details on using hashes here.

File details

Details for the file python_observabilityclient-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for python_observabilityclient-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6dab3295688ed5bfe90e4ab3e1b46b521170a0abf5e2cd26fbf2995bb2cc6365
MD5 748b69a7fcdb1b7dbddfb765e39af63c
BLAKE2b-256 1b7fdfd14cc0e47d199c75923cfc9bf2508baa4de3d30ce65e527c8d53c639d3

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