Skip to content

Commit 3bbb02f

Browse files
committed
add extra prom alertmanager config + fix bug in same
1 parent 2ccf041 commit 3bbb02f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

environments/common/inventory/group_vars/all/prometheus.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ prometheus_alertmanager_config_default:
1313
- static_configs:
1414
- targets:
1515
- "{{ alertmanager_address }}:{{ alertmanager_port }}"
16-
prometheus_alertmanager_config: "{{ prometheus_alertmanager_config_default if groups['alertmanager'] else {} }}"
16+
prometheus_alertmanager_config_extra: []
17+
prometheus_alertmanager_config: "{{ (prometheus_alertmanager_config_default if groups['alertmanager'] else []) + prometheus_alertmanager_config_extra }}"
1718

1819
# By default, find rule files from the following path relative to current and all parent environment inventory directories:
1920
# Note: If the same file exists in parent and child environments, only the file in the latter has any effect.

0 commit comments

Comments
 (0)