prometheus-kafka-exporter
by Helm
Prometheus metrics exporter for Kafka
About this chart
prometheus-kafka-exporter
kafka_exporter is a Prometheus exporter for Kafka metrics.
TL;DR;
$ helm repo add gkarthiks https://gkarthiks.github.io/helm-charts
$ helm install --name kafka-exporter gkarthiks/prometheus-kafka-exporter
Introduction
This chart bootstraps a kafka_exporter deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.8+ with Beta APIs enabled
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add gkarthiks https://gkarthiks.github.io/helm-charts
$ helm install --name kafka-exporter gkarthiks/prometheus-kafka-exporter
The command deploys prometheus-kafka-exporter on the Kubernetes cluster in the default configuration.
Uninstalling the Chart
To uninstall/delete the kafka-exporter deployment:
$ helm delete kafka-exporter
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters and their default values.
| Parameter | Description | Default |
|---|---|---|
replicaCount | desired number of prometheus-kafka-exporter pods | 1 |
image.repository | prometheus-kafka-exporter image repository | danielqsj/kafka-exporter |
image.tag | prometheus-kafka-exporter image tag | latest |
image.pullPolicy | image pull policy | IfNotPresent |
resources | cpu/memory resource requests/limits | {} |
service.type | desired service type | ClusterIP |
service.port | service external port | 9308 |
service.annotations | annotations for service | {} |
kafkaServer | Kafka server addresses as an array with port number | |
annotations | pod annotations for easier discovery | {} |
rbac.create | Specifies whether RBAC resources should be created. | true |
rbac.pspEnabled | Specifies whether a PodSecurityPolicy should be created. | true |
serviceAccount.create | Specifies whether a service account should be created. | true |
serviceAccount.name | Name of the service account. | `` |
prometheus.serviceMonitor.enabled. | Whether you would like to enable a serviceMonitor | true |
prometheus.serviceMonitor.namespace. | The namespace to create the serviceMonitor in | monitoring |
prometheus.serviceMonitor.interval | Interval at which metrics should be scraped | prometheus-kafka-exporter |
prometheus.serviceMonitor.additionalLabels.app | Additional labels to add to the ServiceMonitor | {} |
For more information please refer to the kafka_exporter documentation.
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install --name kafka-exporter \
--set "replicaCount=1" \
gkarthiks/prometheus-kafka-exporter
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install --name kafka-exporter -f values.yaml gkarthiks/prometheus-kafka-exporter
Deploy prometheus-kafka-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-kafka-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprometheus-kafka-exporter is pinned at v0.1.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply