From 3ab9938d85b4119354ec10de9ed572da1570af0b Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sun, 25 Jun 2017 15:34:31 +0200 Subject: Adds metrics exporter for Prometheus --- 50kafka.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '50kafka.yml') diff --git a/50kafka.yml b/50kafka.yml index c99630b..1dd4804 100644 --- a/50kafka.yml +++ b/50kafka.yml @@ -10,11 +10,21 @@ spec: metadata: labels: app: kafka + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "5556" spec: terminationGracePeriodSeconds: 10 containers: + - name: metrics + image: solsson/kafka-prometheus-jmx-exporter + ports: + - containerPort: 5556 - name: broker image: solsson/kafka:0.11.0.0-rc2@sha256:c1316e0131f4ec83bc645ca2141e4fda94e0d28f4fb5f836e15e37a5e054bdf1 + env: + - name: JMX_PORT + value: "5555" ports: - containerPort: 9092 command: -- cgit v1.2.3