Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_observabilityclient-1.3.0.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_observabilityclient-1.3.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file python_observabilityclient-1.3.0.tar.gz.

File metadata

File hashes

Hashes for python_observabilityclient-1.3.0.tar.gz
Algorithm Hash digest
SHA256 a79979d72f2a34f21a979c5a8e00d74d4ab3f5641558eb36064c06db16ed6524
MD5 df5b8f1d65a8d9369de20aa5e22bf44c
BLAKE2b-256 67a1dbf152374c3a23d058573670f2b8accdaadb9eaea9253869bf10c38da3f5

See more details on using hashes here.

File details

Details for the file python_observabilityclient-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_observabilityclient-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7df4a15b9411d2a37588708311aa05945b58a468d04195ef969079010cfdb16b
MD5 70beb77229b5eddde811085542afeba5
BLAKE2b-256 a6091a50690e765b2bb193a48e19dd89169988345345b44855f46038d299beb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page