Merge "Fix AlertManager's external web url"
This commit is contained in:
commit
a396284a83
@ -321,3 +321,5 @@ prometheus_memcached_exporter_cmdline_extras: ""
|
|||||||
prometheus_mysqld_exporter_cmdline_extras: ""
|
prometheus_mysqld_exporter_cmdline_extras: ""
|
||||||
prometheus_node_exporter_cmdline_extras: ""
|
prometheus_node_exporter_cmdline_extras: ""
|
||||||
prometheus_openstack_exporter_cmdline_extras: ""
|
prometheus_openstack_exporter_cmdline_extras: ""
|
||||||
|
|
||||||
|
prometheus_alertmanager_external_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_alertmanager_port }}"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"command": "/opt/prometheus_alertmanager/alertmanager --config.file=/etc/prometheus/alertmanager.yml --web.listen-address={{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_alertmanager_port }} --web.external-url={{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_alertmanager_port }} --cluster.listen-address={% if groups["prometheus-alertmanager"] | length > 1 %}{{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_alertmanager_cluster_port }} {% for host in groups["prometheus-alertmanager"] %} --cluster.peer={{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ hostvars[host]['prometheus_alertmanager_cluster_port'] }}{% endfor %}{% endif %} --storage.path /var/lib/prometheus",
|
"command": "/opt/prometheus_alertmanager/alertmanager --config.file=/etc/prometheus/alertmanager.yml --web.listen-address={{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_alertmanager_port }} --web.external-url={{ prometheus_alertmanager_external_url }} --cluster.listen-address={% if groups["prometheus-alertmanager"] | length > 1 %}{{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_alertmanager_cluster_port }} {% for host in groups["prometheus-alertmanager"] %} --cluster.peer={{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ hostvars[host]['prometheus_alertmanager_cluster_port'] }}{% endfor %}{% endif %} --storage.path /var/lib/prometheus",
|
||||||
"config_files": [
|
"config_files": [
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/prometheus-alertmanager.yml",
|
"source": "{{ container_config_directory }}/prometheus-alertmanager.yml",
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes an issue with AlertManager external Web URL being unconfigurable.
|
||||||
|
A new variable ``prometheus_alertmanager_external_url`` has been
|
||||||
|
introduced that users can use to set web.external-url to public.
|
Loading…
Reference in New Issue
Block a user