File tree Expand file tree Collapse file tree 4 files changed +62
-6
lines changed Expand file tree Collapse file tree 4 files changed +62
-6
lines changed Original file line number Diff line number Diff line change 20
20
image : solsson/kafka-prometheus-jmx-exporter@sha256:1f7c96c287a2dbec1d909cd8f96c0656310239b55a9a90d7fd12c81f384f1f7d
21
21
ports :
22
22
- containerPort : 5556
23
+ resources :
24
+ requests :
25
+ cpu : 0m
26
+ memory : 40Mi
27
+ limits :
28
+ cpu : 10m
29
+ memory : 40Mi
23
30
- name : broker
24
31
image : solsson/kafka:0.11.0.0-rc2@sha256:c1316e0131f4ec83bc645ca2141e4fda94e0d28f4fb5f836e15e37a5e054bdf1
25
32
env :
39
46
resources :
40
47
requests :
41
48
cpu : 100m
42
- memory : 600Mi
49
+ memory : 512Mi
43
50
volumeMounts :
44
51
- name : data
45
52
mountPath : /var/lib/kafka/data
Original file line number Diff line number Diff line change
1
+ # Sets up a pod that monitors itself, to test resource usage etc.
2
+ # kubectl exec test-metrics-... -- /bin/sh -c 'apk add --no-cache curl && curl http://localhost:5556/metrics'
3
+ apiVersion : extensions/v1beta1
4
+ kind : Deployment
5
+ metadata :
6
+ name : monitoring-test
7
+ namespace : kafka
8
+ spec :
9
+ replicas : 1
10
+ template :
11
+ metadata :
12
+ labels :
13
+ app : monitoring-test
14
+ # Uncomment to test with prometheus
15
+ # annotations:
16
+ # prometheus.io/scrape: "true"
17
+ # prometheus.io/port: "5556"
18
+ spec :
19
+ containers :
20
+ - name : monitor
21
+ image : solsson/kafka-prometheus-jmx-exporter@sha256:1f7c96c287a2dbec1d909cd8f96c0656310239b55a9a90d7fd12c81f384f1f7d
22
+ command :
23
+ - java
24
+ - -Dcom.sun.management.jmxremote.ssl=false
25
+ - -Dcom.sun.management.jmxremote.authenticate=false
26
+ - -Dcom.sun.management.jmxremote.port=5555
27
+ - -jar
28
+ - jmx_prometheus_httpserver.jar
29
+ - " 5556"
30
+ - example_configs/httpserver_sample_config.yml
31
+ ports :
32
+ - name : jmx
33
+ containerPort : 5555
34
+ - name : slashmetrics
35
+ containerPort : 5556
Original file line number Diff line number Diff line change 27
27
- example_configs/zookeeper.yaml
28
28
ports :
29
29
- containerPort : 5556
30
+ resources :
31
+ requests :
32
+ cpu : 0m
33
+ memory : 40Mi
34
+ limits :
35
+ cpu : 10m
36
+ memory : 40Mi
30
37
- name : zookeeper
31
38
image : solsson/kafka:0.11.0.0-rc2@sha256:c1316e0131f4ec83bc645ca2141e4fda94e0d28f4fb5f836e15e37a5e054bdf1
32
39
env :
52
59
resources :
53
60
requests :
54
61
cpu : 10m
55
- memory : 120Mi
62
+ memory : 100Mi
56
63
volumeMounts :
57
64
- name : config
58
65
mountPath : /usr/local/kafka/config
Original file line number Diff line number Diff line change @@ -20,13 +20,20 @@ spec:
20
20
- name : metrics
21
21
image : solsson/kafka-prometheus-jmx-exporter@sha256:1f7c96c287a2dbec1d909cd8f96c0656310239b55a9a90d7fd12c81f384f1f7d
22
22
command :
23
- - " java"
24
- - " -jar"
25
- - " jmx_prometheus_httpserver.jar"
23
+ - java
24
+ - -jar
25
+ - jmx_prometheus_httpserver.jar
26
26
- " 5556"
27
27
- example_configs/zookeeper.yaml
28
28
ports :
29
29
- containerPort : 5556
30
+ resources :
31
+ requests :
32
+ cpu : 0m
33
+ memory : 40Mi
34
+ limits :
35
+ cpu : 10m
36
+ memory : 40Mi
30
37
- name : zookeeper
31
38
image : solsson/kafka:0.11.0.0-rc2@sha256:c1316e0131f4ec83bc645ca2141e4fda94e0d28f4fb5f836e15e37a5e054bdf1
32
39
env :
52
59
resources :
53
60
requests :
54
61
cpu : 10m
55
- memory : 120Mi
62
+ memory : 100Mi
56
63
volumeMounts :
57
64
- name : config
58
65
mountPath : /usr/local/kafka/config
You can’t perform that action at this time.
0 commit comments