File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ processors:
54
54
- {from: "json.ElapsedRaw", type: "integer"}
55
55
56
56
output.elasticsearch :
57
- hosts : ["{{ opensearch_address }}:9200"]
57
+ hosts : ["{{ '127.0.0.1' if groups['opensearch'] == groups['filebeat'] else opensearch_ip }}:9200"]
58
58
protocol : " https"
59
59
ssl.verification_mode : none
60
60
username : " admin"
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ alertmanager_slack_receiver:
20
20
authorization :
21
21
credentials : " {{ alertmanager_slack_integration.app_creds | default('none') }}"
22
22
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"
24
24
send_resolved : true
25
25
26
26
# Uncomment below and add Slack bot app creds for Slack integration
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ internal_address: "{{ inventory_hostname }}"
15
15
api_address : " {{ inventory_hostname }}"
16
16
17
17
# 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 }}"
20
19
openondemand_address : " {{ hostvars[groups['openondemand'].0].api_address if groups['openondemand'] | count > 0 else '' }}"
21
20
grafana_address : " {{ hostvars[groups['prometheus'].0].api_address }}"
22
21
You can’t perform that action at this time.
0 commit comments