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.3.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for python-observabilityclient-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2e564afee05cc25d8e5949d80dc50fed27bbff73ab11f161fbdbe6da540346d9
MD5 2e04af2547321325342640195ae3682b
BLAKE2b-256 d2b8debb1536256dd31abec40ea9dc52ec2ec3119cd5d66ff09fb4f061464c0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_observabilityclient-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c770d1c9e51a7b9bdb1fb69ed1c28880dd4c8b05e4719722da8c41973459383
MD5 98be932bfd5de687791d54902f85c24e
BLAKE2b-256 8e8c13d904b2358a9d30ab25c7565b2bac63bd59c9a2147ab06c8df15425f9d0

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