File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -86,4 +86,6 @@ Is the metrics system up and running?
86
86
```
87
87
kubectl logs -c metrics kafka-0
88
88
kubectl exec -c broker kafka-0 -- /bin/sh -c 'apk add --no-cache curl && curl http://localhost:5556/metrics'
89
+ kubectl logs -c metrics zoo-0
90
+ kubectl exec -c zookeeper zoo-0 -- /bin/sh -c 'apk add --no-cache curl && curl http://localhost:5556/metrics'
89
91
```
Original file line number Diff line number Diff line change @@ -10,11 +10,27 @@ spec:
10
10
metadata :
11
11
labels :
12
12
app : zookeeper
13
+ annotations :
14
+ prometheus.io/scrape : " true"
15
+ prometheus.io/port : " 5556"
13
16
spec :
14
17
terminationGracePeriodSeconds : 10
15
18
containers :
19
+ - name : metrics
20
+ image : solsson/kafka-prometheus-jmx-exporter@sha256:1f7c96c287a2dbec1d909cd8f96c0656310239b55a9a90d7fd12c81f384f1f7d
21
+ command :
22
+ - " java"
23
+ - " -jar"
24
+ - " jmx_prometheus_httpserver.jar"
25
+ - " 5556"
26
+ - example_configs/zookeeper.yaml
27
+ ports :
28
+ - containerPort : 5556
16
29
- name : zookeeper
17
30
image : solsson/kafka:0.11.0.0-rc2@sha256:c1316e0131f4ec83bc645ca2141e4fda94e0d28f4fb5f836e15e37a5e054bdf1
31
+ env :
32
+ - name : JMX_PORT
33
+ value : " 5555"
18
34
command :
19
35
- sh
20
36
- -c
You can’t perform that action at this time.
0 commit comments