File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,3 +69,4 @@ kubectl exec -c broker kafka-0 -- /bin/sh -c 'apk add --no-cache curl && curl ht
69
69
kubectl logs -c metrics zoo-0
70
70
kubectl exec -c zookeeper zoo-0 -- /bin/sh -c 'apk add --no-cache curl && curl http://localhost:5556/metrics'
71
71
```
72
+ Metrics containers can't be used for the curl because they're too short on memory.
Original file line number Diff line number Diff line change 21
21
image : solsson/kafka-prometheus-jmx-exporter@sha256:1f7c96c287a2dbec1d909cd8f96c0656310239b55a9a90d7fd12c81f384f1f7d
22
22
command :
23
23
- java
24
+ - -Xms39M
25
+ - -Xmx99M
24
26
- -jar
25
27
- jmx_prometheus_httpserver.jar
26
28
- " 5556"
41
43
value : " 5555"
42
44
command :
43
45
- /bin/bash
44
- - -c
46
+ - -euc
45
47
- >
46
- set -e;
47
48
export ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-} + 4));
48
49
echo "${ZOOKEEPER_SERVER_ID:-1}" | tee /var/lib/zookeeper/data/myid;
49
50
sed -i "s/server\.$ZOOKEEPER_SERVER_ID\=[a-z0-9.-]*/server.$ZOOKEEPER_SERVER_ID=0.0.0.0/" config/zookeeper.properties;
You can’t perform that action at this time.
0 commit comments