Skip to content

Commit 9f81fcd

Browse files
authored
Devenv: fix kibana in elastic7 docker block (grafana#20308)
* Devenv: fix kibana in elastic7 docker block * Remove network host mode for metricbeat container
1 parent 08fcff1 commit 9f81fcd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

devenv/docker/blocks/elastic7/docker-compose.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
metricbeat7:
2828
image: docker.elastic.co/beats/metricbeat-oss:7.0.0
29-
network_mode: host
3029
command: metricbeat -e -strict.perms=false
3130
user: root
3231
volumes:
@@ -37,5 +36,7 @@
3736
image: docker.elastic.co/kibana/kibana-oss:7.0.0
3837
ports:
3938
- "5601:5601"
39+
links:
40+
- elasticsearch7
4041
environment:
4142
ELASTICSEARCH_HOSTS: http://elasticsearch7:9200

devenv/docker/blocks/elastic7/metricbeat.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ processors:
2828
- add_cloud_metadata: ~
2929

3030
output.elasticsearch:
31-
hosts: ["localhost:12200"]
31+
hosts: ["elasticsearch7:9200"]
3232
index: "metricbeat-%{+yyyy.MM.dd}"
3333

3434
setup.template.name: "metricbeat"
3535
setup.template.pattern: "metricbeat-*"
3636
setup.template.settings:
3737
index.number_of_shards: 1
38-
index.number_of_replicas: 1
38+
index.number_of_replicas: 1

0 commit comments

Comments
 (0)