OpenStack Observability Client
Project description
========================== 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
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-1.3.0.tar.gz.
File metadata
- Download URL: python_observabilityclient-1.3.0.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a79979d72f2a34f21a979c5a8e00d74d4ab3f5641558eb36064c06db16ed6524
|
|
| MD5 |
df5b8f1d65a8d9369de20aa5e22bf44c
|
|
| BLAKE2b-256 |
67a1dbf152374c3a23d058573670f2b8accdaadb9eaea9253869bf10c38da3f5
|
File details
Details for the file python_observabilityclient-1.3.0-py3-none-any.whl.
File metadata
- Download URL: python_observabilityclient-1.3.0-py3-none-any.whl
- Upload date:
- Size: 38.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df4a15b9411d2a37588708311aa05945b58a468d04195ef969079010cfdb16b
|
|
| MD5 |
70beb77229b5eddde811085542afeba5
|
|
| BLAKE2b-256 |
a6091a50690e765b2bb193a48e19dd89169988345345b44855f46038d299beb5
|