...
Code Block | ||||
---|---|---|---|---|
| ||||
kafkaExporter: groupRegex: ".*" topicRegex: ".*" logging: debug enableSaramaLogging: true readinessProbe: initialDelaySeconds: 15 timeoutSeconds: 5 livenessProbe: initialDelaySeconds: 15 timeoutSeconds: 5 |
When you start your cluster you should see an additional pod running for Kafka exporter.
You can create a service for this using this yaml file: kafka-exporter.yaml
Using minikube tunnel you can view the metrics using this link: localhost:9100/metrics
Next edit the scrape configs section in prometheus.yaml to include an entry for these metrics.
Code Block | ||||
---|---|---|---|---|
| ||||
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- localhost:9090
- job_name: kafka-exporter
scrape_interval: 10s
metrics_path: /metrics
static_configs:
- targets:
- kafka-exporter.kafka:9100 |