Current Series Release Notes¶
0.4.0-10¶
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.