Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ansible/roles/prometheus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -105,6 +106,11 @@ 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_haproxy_members: "{% for host in groups['prometheus'] %}server {{ hostvars[host]['ansible_hostname'] }} {{ 'api' | kolla_address(host) }}:{{ prometheus_port }} check inter 2000 rise 2 fall 5{% if not loop.first %} backup{% endif %};{% endfor %}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ansible_facts.hostname


####################
# Blackbox
####################
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
upgrade:
- |
Prometheus has been switched to active/passive mode. 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>`__.