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:
parent
ecbf9da158
commit
05df4e7209
@ -203,6 +203,9 @@ scrape_configs:
|
|||||||
|
|
||||||
{% if enable_prometheus_etcd_integration | bool %}
|
{% if enable_prometheus_etcd_integration | bool %}
|
||||||
- job_name: etcd
|
- job_name: etcd
|
||||||
|
{% if etcd_enable_tls | bool %}
|
||||||
|
scheme: https
|
||||||
|
{% endif %}
|
||||||
static_configs:
|
static_configs:
|
||||||
{% for host in groups["etcd"] %}
|
{% for host in groups["etcd"] %}
|
||||||
- targets:
|
- targets:
|
||||||
|
@ -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>`__
|
Loading…
x
Reference in New Issue
Block a user