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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-observabilityclient-0.0.4.tar.gz.
File metadata
- Download URL: python-observabilityclient-0.0.4.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf968ad766e1e0e3b16396f859fd9d4617c02bd867978d2fa8303f748211631
|
|
| MD5 |
d7010becafaf4f25fcf49c4ea41dad73
|
|
| BLAKE2b-256 |
fd15699d59fcb6e360b33b0ac899f86f1554c0a223c6b881c0158cd4d02735dc
|
File details
Details for the file python_observabilityclient-0.0.4-py3-none-any.whl.
File metadata
- Download URL: python_observabilityclient-0.0.4-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dab3295688ed5bfe90e4ab3e1b46b521170a0abf5e2cd26fbf2995bb2cc6365
|
|
| MD5 |
748b69a7fcdb1b7dbddfb765e39af63c
|
|
| BLAKE2b-256 |
1b7fdfd14cc0e47d199c75923cfc9bf2508baa4de3d30ce65e527c8d53c639d3
|