Skip to main content

========================== 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 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

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)

Source distribution for python-observabilityclient 1.4.0
File Size Uploaded
python_observabilityclient-1.4.0.tar.gz 40.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-observabilityclient 1.4.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page