We use kafka chart (version 17) as a dependency of our chart. And for I try to configure monitoring of that kafka.
values.yaml:
kafka:
metrics:
kafka:
enabled: true
jmx:
enabled: true
serviceMonitor:
enabled: true
labels:
my.custom.label/service-monitor: "1.0"
...
Then I deploy my application and go to prometheus targets and I see following:
I am concerned about the failed request.
What I see ?
There are 2 services to monitor:
- jmx-exporter
- kafka-exporter
and both of those services are requested by 2 paths:
- /
- /metrics
But kafka-exporter
doesn't respond on /
. Is there way to configure kafka chart to work without failures if there are 2 exporters are enabled ?
P.S.
Services definition:
spec:
endpoints:
- path: /
port: http-metrics
namespaceSelector:
matchNames:
- my-ns
selector:
matchLabels:
app.kubernetes.io/component: metrics
app.kubernetes.io/instance: dev-my-app
app.kubernetes.io/name: my-app-kafka
spec:
endpoints:
- path: /metrics
port: http-metrics
namespaceSelector:
matchNames:
- my-ns
selector:
matchLabels:
app.kubernetes.io/component: metrics
app.kubernetes.io/instance: dev-my-app
app.kubernetes.io/name: my-app-kafka