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 Provenance Actions
python_observabilityclient-1.4.0.tar.gz 40.5 kB Without provenance Details for python_observabilityclient-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-observabilityclient 1.4.0
File Interpreter ABI Platform Actions
python_observabilityclient-1.4.0-py3-none-any.whl Python 3 none any Details for python_observabilityclient-1.4.0-py3-none-any.whl

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

Security for python-observabilityclient 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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