Skip to content

Commit 6d767f5

Browse files
authoredMay 2, 2022
[Examples] bulk/kafka (#489)
* Update go dependencies * Disable Elasticsearch security for kafka demo * Remove apm-server for now, reintegrate with fleet later * Remove APM direct reference from readme
1 parent a1c35a8 commit 6d767f5

File tree

5 files changed

+14
-350
lines changed

5 files changed

+14
-350
lines changed
 

‎_examples/bulk/kafka/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ Then, launch the Kafka producers and consumers and the Elasticsearch indexer:
1616
make run
1717

1818
Open the [_Kibana_ dashboard](http://localhost:5601/app/kibana#/dashboard/140b5490-5fce-11ea-a238-bf5970186390) to see
19-
the results, the [_
20-
Kibana_ APM application](http://localhost:5601/app/apm#/services/kafka/transactions?rangeFrom=now-15m&rangeTo=now&refreshPaused=true&refreshInterval=0&transactionType=indexing)
21-
to see the indexer metrics, and [_Confluent Control Center_](http://localhost:9021/) to inspect the Kafka cluster and
19+
the results and [_Confluent Control Center_](http://localhost:9021/) to inspect the Kafka cluster and
2220
see details about the topic and performance of consumers.
2321

2422
See the [`producer/producer.go`](producer/producer.go) file for the Kafka

‎_examples/bulk/kafka/docker-compose.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ services:
8888
- network.host=elasticsearch,_local_
8989
- network.publish_host=elasticsearch
9090
- bootstrap.memory_lock=true
91+
- xpack.security.enabled=false
92+
- xpack.security.http.ssl.enabled=false
9193
- ES_JAVA_OPTS=-Xms${ES_MEMORY} -Xmx${ES_MEMORY}
9294
ulimits: { nofile: { soft: 65535, hard: 65535 }, memlock: -1 }
9395
healthcheck:
@@ -107,19 +109,6 @@ services:
107109
healthcheck:
108110
test: curl --max-time 120 --retry 120 --retry-delay 1 --show-error --silent http://localhost:5601
109111

110-
apm_server:
111-
container_name: apm_server
112-
image: docker.elastic.co/apm/apm-server:${ELASTIC_VERSION}
113-
depends_on: [ 'elasticsearch', 'kibana' ]
114-
command: -e --strict.perms=false
115-
networks:
116-
- elasticsearch
117-
ports:
118-
- 8200:8200
119-
restart: on-failure
120-
healthcheck:
121-
test: curl --max-time 120 --retry 120 --retry-delay 1 --show-error --silent http://localhost:8200
122-
123112
networks:
124113
kafka:
125114
elasticsearch:

‎_examples/bulk/kafka/etc/kibana-objects.ndjson

+8-333
Large diffs are not rendered by default.

‎_examples/bulk/kafka/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/dustin/go-humanize v1.0.0 // indirect
1111
github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7
1212
github.com/prometheus/procfs v0.0.3 // indirect
13-
github.com/segmentio/kafka-go v0.4.25 // indirect
13+
github.com/segmentio/kafka-go v0.4.25
1414
go.elastic.co/apm v1.14.0
1515
go.elastic.co/apm/module/apmelasticsearch v1.14.0 // indirect
1616
)

‎_examples/bulk/kafka/go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25Kn
1111
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
1212
github.com/elastic/elastic-transport-go/v8 v8.0.0-20211202110751-50105067ef27 h1:O58SwZ7pdt7Lzy8JqpJubJlgDbr9jVV7ro4HFPvaZDw=
1313
github.com/elastic/elastic-transport-go/v8 v8.0.0-20211202110751-50105067ef27/go.mod h1:87Tcz8IVNe6rVSLdBux1o/PEItLtyabHU3naC7IoqKI=
14+
github.com/elastic/elastic-transport-go/v8 v8.0.0-20211216131617-bbee439d559c h1:onA2RpIyeCPvYAj1LFYiiMTrSpqVINWMfYFRS7lofJs=
15+
github.com/elastic/elastic-transport-go/v8 v8.0.0-20211216131617-bbee439d559c/go.mod h1:87Tcz8IVNe6rVSLdBux1o/PEItLtyabHU3naC7IoqKI=
1416
github.com/elastic/go-licenser v0.3.1 h1:RmRukU/JUmts+rpexAw0Fvt2ly7VVu6mw8z4HrEzObU=
1517
github.com/elastic/go-licenser v0.3.1/go.mod h1:D8eNQk70FOCVBl3smCGQt/lv7meBeQno2eI1S5apiHQ=
1618
github.com/elastic/go-sysinfo v1.1.1 h1:ZVlaLDyhVkDfjwPGU55CQRCRolNpc7P0BbyhhQZQmMI=

0 commit comments

Comments
 (0)
Please sign in to comment.