What does the Kafka connector do?
How to Monitor Kafka on the One Platform
To set up monitoring for Kafka on the platform, follow these steps:
Go to the product application where you want to add Kafka as a dependency on the platform.
Click on the “Products” menu and select the desired product card.
Then, click on the name of the specific application where you want to configure Kafka monitoring.
Look for the section called “External Dependencies,” usually located just below the latency graph of the application.
To add an already registered dependency, type the name of the
dependency in the search field and select it when it appears in the
list.If Kafka is not yet registered as a dependency, click on the green button with a plus (+) symbol to add a new dependency.
When you click on “Add,” a modal will appear. In this modal, you will
name your queue and choose the Environment. In the “Check type” field,
select the option “Queue,” and in the “Method” field, choose “Kafka.”
After selecting the method, a field for “Healthcheck URL” will appear.
To perform this step, the responsible person needs to understand how
the Kafka cluster operates and what type of checks they want to perform.
Below are the examples of strings for Kafka checks:
There are four ways to check the Kafka cluster:
Connection without authentication and a simple check of a specific topic for the platform:
HOST:PORT/TOPIC
Connection without authentication and a simple check of a specific topic for the platform, but with a list of brokers:
[HOST1:PORT,HOST2:PORT]/TOPIC
orHOST1:PORT,HOST2:PORT/TOPIC
Connection without authentication and verification of message
consumption delay size for a topic (Production) from the perspective of a
consumer group:[HOST:PORT]/TOPIC/CONSUMER-GROUP/LAG-TOLERANCE
Connection with SASL authentication and simple (or non-simple) verification:
USER:PASSWORD:MECHANISM:TLS:SASL@[HOST1:PORT,HOST2:PORT]/TOPIC
orUSER:PASSWORD:MECHANISM:TLS:SASL@[HOST1:PORT,HOST2:PORT]/TOPIC/CONSUMER-GROUP/LAG-TOLERANCE
Example of a verification string for the example 4:
kafka:{{.kafka_password}}:SCRAM-SHA-512:true:true@[b-2.kafka-production.amazonaws.com:9096,b-1.kafka-production.amazonaws.com:9096,b-3.kafka-production.amazonaws.com:9096]/eventos/consumidor-de-eventos/200
Note: For security reasons, it is not permitted to enter an IP in the
healthcheck field. To monitor an IP, you need to enter it in a secret
and use it in healthcheck