prometheus: Fix etcd scrape when etcd uses TLS

Use HTTPS to scrape etcd metrics when etcd TLS is enabled.

Change-Id: Iaff10d5314a8dc5b07137d93c269f1ac24cf63de
Closes-Bug: #2036950
This commit is contained in:
Mark Goddard 2023-09-21 12:23:24 +01:00
parent ecbf9da158
commit 05df4e7209
2 changed files with 9 additions and 0 deletions

View File

@ -203,6 +203,9 @@ scrape_configs:
{% if enable_prometheus_etcd_integration | bool %}
- job_name: etcd
{% if etcd_enable_tls | bool %}
scheme: https
{% endif %}
static_configs:
{% for host in groups["etcd"] %}
- targets:

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue where Prometheus scraping of Etcd metrics would fail if Etcd
TLS is enabled. `LP#2036950
<https://bugs.launchpad.net/kolla-ansible/+bug/2036950>`__