Current Series Release Notes¶
1.0.0-9¶
New Features¶
Allow for specifying project label name when creating an instance of PromQLRbac. The change is backwards compatible, the same label name ‘project’ is still being used as a default.
Upgrade Notes¶
Support for Python 3.9 has been removed. Now Python 3.10 is the minimum version supported.
Security Issues¶
Modified the observabilityclient to send keystone token with each request only when communicating with Aetos, instead of sending it everytime, which could pose a security risk. This also restricts configuration options for connecting to Aetos to keystone endpoints only. Configuration for Prometheus is unchanged and can still be done through keystone endpoint, through a configuration file or through environment variables.
Bug Fixes¶
Fixed broken handling of IPv6 address host, caused by missing host escape.
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.