-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent metric availability in distributed kafka connect #985
Comments
@chrisluedtke can you upgrade to version There were issues before version |
Thanks @dhoard. 1.0.1 has the same problem for me. I found that this issue is not present when running a standalone single process of kafka connect. So this appears to be a distributed system issue. |
@chrisluedtke How are you managing ingress for the Connect containers when running a cluster? |
I'm running a kubernetes kafka-connect service with a selector that matches a label on the deployment and worker pods. I only access it from within the cluster (or use apiVersion: v1
kind: Service
metadata:
creationTimestamp: "2024-08-02T20:19:45Z"
name: kafka-connect
namespace: dev-kafka-connect
resourceVersion: "993603120"
uid:<redacted_uid>
spec:
clusterIP: <redacted_ip_1>
clusterIPs:
- <redacted_ip_1>
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: connect
port: 8083
protocol: TCP
targetPort: 8083
- name: jmx
port: 1976
protocol: TCP
targetPort: 1976
- name: prometheus
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: kafka-connect
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {} I appreciate your input! I realize this is most likely a "me" problem. |
@chrisluedtke each Connect pod will need to be scraped directly. I suspect your ingress is bouncing between Connect PODS (exporters), resulting in different metrics |
Gotcha, I'll implement a prometheus server and pull metrics from there instead. |
When I hit my metrics endpoint via
curl debezium:8080
, I get different connector metrics each time. I've seen this behavior in both core kafka connect metrics (task status), and in snapshot metrics from a debezium connector.In this example, I expect to see 3 connector statuses each time:
Kafka connect dockerfile:
JMX config:
The text was updated successfully, but these errors were encountered: