Skip to content

Kafka auth issue with existing image #224

@albertilagan

Description

@albertilagan

I want to preface this by saying that I'm not entirely sure what's wrong with it but with this config

apiVersion: v1
kind: ConfigMap
metadata:
  name: event-exporter-cfg
  namespace: monitoring
data:
  config.yaml: |
    logLevel: debug
    logFormat: json
    metricsNamePrefix: "kubernetes_event_"
    receivers:
      - name: "kafka"
        kafka:
          clientId: "kubernetes"
          topic: "topic.events"
          brokers:
            - "ip1:port"
            - "ip2:port"
            - "ip3:port"
          compressionCodec: "snappy"
          sasl:
            enable: true
            username: "<username>"
            password: "<password>"
            mechanism: "sha256"
    route:
      routes:
        - match:
            - kind: "Pod"
              receiver: "kafka"
image: ghcr.io/resmoio/kubernetes-event-exporter:latest

I'm getting this error

{"level":"fatal","error":"kafka: client has run out of available brokers to talk to","name":"kafka","time":"2025-03-18T17:24:08Z","message":"Cannot initialize sink"}

Image

So I tried to fork and hoping to try debug it, but for some reason without doing any changes aside from re-building the image on my fork it works

image: ghcr.io/albertilagan/kubernetes-event-exporter:master

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions