Skip to content

Unable to connect to ssl Kafka #140

@Twisterrr

Description

@Twisterrr

Hi Team,
I am trying to connect my prometheus-kafka-adapter with kafka running on Openshift on-premise.
I configured the ssl parameters as specified in the documentation.
But, it fails with this message :

%6|1775136037.535|FAIL|rdkafka#producer-1| [thrd:my_ip:9092/bootstrap]: my_ip:9092/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 3ms in state APIVERSION_QUERY, 4 identical error(s) suppressed)

I tried not enabling SSL, but I'm still getting the error. Here are the environment variables I'm using :

KAFKA_BROKER_LIST: "my_ip:9092"
KAFKA_TOPIC: "my_topic"
SERIALIZATION_FORMAT: "json"
PORT: "8080"
KAFKA_SSL_CA_CERT_FILE: "/etc/kafka-certs/ca.crt"
LOG_LEVEL: "debug"

I don't currently know how to fix it.
Thank you for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions