Files
cloudkitty/releasenotes/notes/rework-prometheus-collector-f9f34a3792888dad.yaml
Justin Ferrieu 38f694ad37 Add HTTPS and auth support to Prometheus collector
Most changes can be seen on the PrometheusClient class
inside cloudkitty/collector/prometheus.py:

The client can now be constructed with extra options
in order to:
* enable/disable custom CA file
* enable/disable SSL certificate check for trust
* provide credentials for HTTP basic authentication

PrometheusCollector has new configuration options:
* prometheus_url: Prometheus service URL
* prometheus_user: Prometheus user (for basic auth only)
* prometheus_password: Prometheus password (for basic auth only)
* cafile: Custom certificate authority file path
* insecure: Explicitly trust untrusted HTTPS responses

At instantiation, PrometheusCollector now builds the client
with the proper configuration options as described earlier.

Change-Id: I08acc4860e8041f56ebb40f976cb951042814ca4
Story: 2004974
Task: 29429
2019-03-21 15:58:45 +01:00

7 lines
174 B
YAML

---
features:
- |
Prometheus collector now supports HTTPS with custom CA file,
an insecure option to allow untrusted certificate
and basic HTTP authentication.