Merge "Switch prometheus to active/passive mode"
This commit is contained in:
commit
27bf4e9351
@ -13,6 +13,7 @@ prometheus_services:
|
||||
mode: "http"
|
||||
external: false
|
||||
port: "{{ prometheus_port }}"
|
||||
custom_member_list: "{{ prometheus_haproxy_members.split(';') }}"
|
||||
prometheus-node-exporter:
|
||||
container_name: prometheus_node_exporter
|
||||
group: prometheus-node-exporter
|
||||
@ -105,6 +106,12 @@ prometheus_services:
|
||||
####################
|
||||
prometheus_mysql_exporter_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}prometheus{% endif %}"
|
||||
|
||||
####################
|
||||
# HAProxy
|
||||
####################
|
||||
prometheus_active_passive: true
|
||||
prometheus_haproxy_members: "{% for host in groups['prometheus'] %}server {{ hostvars[host].ansible_facts.hostname }} {{ 'api' | kolla_address(host) }}:{{ prometheus_port }} check inter 2000 rise 2 fall 5{% if not loop.first %}{% if prometheus_active_passive | bool %} backup{% endif %}{% endif %};{% endfor %}"
|
||||
|
||||
####################
|
||||
# Blackbox
|
||||
####################
|
||||
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Prometheus has been switched to active/passive mode. This is enabled by
|
||||
default but can be turned off by setting ``prometheus_active_passive`` to
|
||||
``no``.
|
||||
See bug `1928193
|
||||
<https://bugs.launchpad.net/kolla-ansible/+bug/1928193>`__.
|
||||
fixes:
|
||||
- |
|
||||
Fixes an issue with misaligned data points in grafana when loadbalancing
|
||||
over multiple prometheus server instances. See bug `1928193
|
||||
<https://bugs.launchpad.net/kolla-ansible/+bug/1928193>`__.
|
Loading…
Reference in New Issue
Block a user