Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 686 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 686 Bytes

Export metrics to Prometheus

Kafka uses JMX to expose metrics, as is already enabled for broker pods. There's many ways to use JMX. For example Kafka Manager uses it to display current broker traffic.

At Yolean we use Prometheus. This folder adds a sidecar to the broker pods that exports selected JMX metrics over HTTP in Prometheus format. To add a container to an existing pod we must use the patchcommand:

kubectl --namespace kafka apply -f prometheus/10-metrics-config.yml 
kubectl --namespace kafka patch statefulset kafka --patch "$(cat prometheus/50-kafka-jmx-exporter-patch.yml )"