========================== python-observabilityclient
.. image:: https://governance.openstack.org/tc/badges/python-observabilityclient.svg
.. Change things from this point on
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.
.. code:: console git clone https://opendev.org/openstack/python-observabilityclient.git cd python-observabilityclient sudo pip install .
Usage
Use openstack metric query somequery to query for metrics in prometheus.
To use the python api do the following:
.. code:: python 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 metricsopenstack metric show- shows current values of a metricopenstack metric query- queries prometheus and outputs the resultopenstack metric delete- deletes some metricsopenstack metric snapshot- takes a snapshot of the current dataopenstack metric clean-tombstones- cleans the tsdb tombstones
List of functions provided by the python library
c.query.list- lists all metricsc.query.show- shows current values of a metricc.query.query- queries prometheus and outputs the resultc.query.delete- deletes some metricsc.query.snapshot- takes a snapshot of the current datac.query.clean-tombstones- cleans the tsdb tombstones
Metadata
Release files for python-observabilityclient 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_observabilityclient-1.4.0.tar.gz | 40.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_observabilityclient-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 79.2 kB
Release files / python_observabilityclient-1.4.0.tar.gz
| Download URL | python_observabilityclient-1.4.0.tar.gz |
|---|---|
| Size | 40.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e77942b792f0c672500b62a42212f317d9f99559a3624f53b31ee83dcb8ce103
|
|
BLAKE2b-256 checksum How to use checksums |
a229c43154b27a1a87c5c0ee7bd10298b3388c62788f3988c47ab9db1714f56d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / python_observabilityclient-1.4.0-py3-none-any.whl
| Download URL | python_observabilityclient-1.4.0-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1967b2932a313efd11f7ad3dc3862991a998fb96d770ed03a3dc33e35f46ce8
|
|
BLAKE2b-256 checksum How to use checksums |
c14d618a9fdae23702e52497caec654d10e72024a45d28e2add0cd4ebe087f57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|