We are amped to announce the release of: python-observabilityclient 0.5.0 This release is part of the flamingo release series. The source is available from: https://opendev.org/openstack/python-observabilityclient Download the package from: https://pypi.org/project/python-observabilityclient Please report issues through: https://bugs.launchpad.net/python-observabilityclient/+bugs For more details, please see below. 0.5.0 ^^^^^ New Features ************ * Added a "root_path" configuration option with a PROMETHEUS_ROOT_PATH environment variable override, which allows to set a root path, which gets prepended to the URL path section for each Prometheus API call. So for example when Prometheus is hosted on localhost:80/prometheus, setting the root_path to "prometheus" will enable the observabilityclient to send requests to URLs like localhost:80/prometheus/api/v1/labels. Upgrade Notes ************* * The rbac module was refactored. The *Rbac* class was renamed to *PromQLRbac* and it was moved from *observabilityclient.v1.rbac* to *observabilityclient.rbac*. The *enrich_query* function was renamed to *modify_query* and the *append_rbac* function was renamed to *append_rbac_labels*. All "disable_rbac" logic was removed from the PromQLRbac. This functionality should be handled externaly from the class if needed. The PromQLRbac constructor now requires an instance of the PrometheusAPIClient instead of an instance of observabilityclient. It also requires an explicitly specified project id instead of trying to figure it out from a provided session object. Changes in python-observabilityclient 0.4.0..0.5.0 -------------------------------------------------- 9b63e62 Add root_path configuration option 72dcb9b Refactor obsC rbac module ccf4ace Enable providing keystone session for Prometheus d69cb08 Additional tests and a fix for rbac code 4957ec6 Fix rbac mocking in unit tests 2fc3646 Fix observabilityclient-dsvm-functional job d86f7f1 Bump hacking 49e2647 Check if the HOME env var is set, otherwise use a default cda9307 Update master for stable/2025.1 3365719 Ignore false-positive E231 error Diffstat (except docs and test files) ------------------------------------- .zuul.yaml | 14 +- observabilityclient/prometheus_client.py | 25 ++- observabilityclient/{v1 => }/rbac.py | 110 +++++------ observabilityclient/utils/metric_utils.py | 16 +- observabilityclient/v1/client.py | 9 +- observabilityclient/v1/python_api.py | 16 +- .../notes/add-root-path-192ac0e6ea99b84f.yaml | 9 + .../notes/refactor-rbac-967ed5edcc1ef2a4.yaml | 13 ++ releasenotes/source/2025.1.rst | 6 + releasenotes/source/index.rst | 1 + setup.cfg | 9 - tox.ini | 4 +- 16 files changed, 339 insertions(+), 199 deletions(-)