Skip to content

Commit 5864b56

Browse files
committed
disambiguated default addresses
1 parent a6d8edc commit 5864b56

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

environments/common/files/filebeat/filebeat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ processors:
5454
- {from: "json.ElapsedRaw", type: "integer"}
5555

5656
output.elasticsearch:
57-
hosts: ["{{ opensearch_address }}:9200"]
57+
hosts: ["{{ '127.0.0.1' if groups['opensearch'] == groups['filebeat'] else opensearch_ip }}:9200"]
5858
protocol: "https"
5959
ssl.verification_mode: none
6060
username: "admin"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ alertmanager_slack_receiver:
2020
authorization:
2121
credentials: "{{ alertmanager_slack_integration.app_creds | default('none') }}"
2222
text: "{{ '{{' }} .GroupLabels.alertname {{ '}}' }} : {{ '{{' }} .CommonAnnotations.description {{ '}}' }}"
23-
title_link: "http://{{ prometheus_address }}/alertmanager/#/alerts?receiver=slack-receiver"
23+
title_link: "http://{{ prometheus_address }}:{{ prometheus_port }}/alertmanager/#/alerts?receiver=slack-receiver"
2424
send_resolved: true
2525

2626
# Uncomment below and add Slack bot app creds for Slack integration

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ internal_address: "{{ inventory_hostname }}"
1515
api_address: "{{ inventory_hostname }}"
1616

1717
# Service endpoints
18-
opensearch_address: "127.0.0.1"
19-
prometheus_address: "{{ hostvars[groups['prometheus'].0].api_address }}:{{ prometheus_port }}"
18+
prometheus_address: "{{ hostvars[groups['prometheus'].0].api_address }}"
2019
openondemand_address: "{{ hostvars[groups['openondemand'].0].api_address if groups['openondemand'] | count > 0 else '' }}"
2120
grafana_address: "{{ hostvars[groups['prometheus'].0].api_address }}"
2221

0 commit comments

Comments
 (0)