Files
python-observabilityclient/releasenotes/notes/add-root-path-192ac0e6ea99b84f.yaml
Jaromir Wysoglad 9b63e62521 Add root_path configuration option
This allows to specify a root path to prepend each api call.

Change-Id: I033553809c72608388250d3ac66e17b5a2784e61
2025-04-22 11:57:18 -04:00

10 lines
464 B
YAML

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