Switch Prometheus Alertmanager to active/passive

Closes-Bug: #1987866
Change-Id: Iaf352a15b9e6c9607e0d33c803c132d9267ca727
This commit is contained in:
Pierre Riteau 2022-08-29 18:25:52 +02:00
parent f7b1221032
commit b8928ce54b
2 changed files with 13 additions and 0 deletions

View File

@ -65,6 +65,7 @@ prometheus_services:
port: "{{ prometheus_alertmanager_port }}"
auth_user: "{{ prometheus_alertmanager_user }}"
auth_pass: "{{ prometheus_alertmanager_password }}"
active_passive: "{{ prometheus_alertmanager_active_passive | bool }}"
prometheus_alertmanager_external:
enabled: "{{ enable_prometheus_alertmanager_external | bool }}"
mode: "http"
@ -72,6 +73,7 @@ prometheus_services:
port: "{{ prometheus_alertmanager_port }}"
auth_user: "{{ prometheus_alertmanager_user }}"
auth_pass: "{{ prometheus_alertmanager_password }}"
active_passive: "{{ prometheus_alertmanager_active_passive | bool }}"
prometheus-openstack-exporter:
container_name: "prometheus_openstack_exporter"
group: "prometheus-openstack-exporter"
@ -132,6 +134,7 @@ prometheus_mysql_exporter_database_user: "{% if use_preconfigured_databases | bo
# HAProxy
####################
prometheus_active_passive: true
prometheus_alertmanager_active_passive: true
####################
# Blackbox

View File

@ -0,0 +1,10 @@
---
upgrade:
- |
Prometheus Alertmanager has been switched to active/passive mode. This is
enabled by default but can be turned off by setting
``prometheus_alertmanager_active_passive`` to ``no``.
fixes:
- |
Fixes an issue with Alertmanager silence creation leading to a 404 page.
`LP#1987866 <https://launchpad.net/bugs/1987866>`__