Connect Prometheus to Apache Kafka®
You can monitor your Managed Service for Apache Kafka® cluster metrics using third-party tools like Prometheus .
Сonsider using a dedicated connection to each of its hosts to connect external monitoring software to your Managed Service for Apache Kafka® cluster - this will ensure you don't get an influx of mixed data from every cluster host simultaneously.
metrics endpoint is accessible as follows:
Export your Apache Kafka® metrics
Go to the Clusters overview page in the console.
Select the cluster from which you want to export metrics.
Open the Monitoring tab.
In the upper-right corner, click .
Follow the instructions in the dialog window:
Get a list of hosts using the DoubleCloud API's
ClusterServiceGet method with the
sensitive:trueflag to get the required credentials. You'll see them under
Use the metrics management solution to visualize the exported metrics. For example, you may use curl to get the raw metrics data in your terminal:
curl -u exporter:<password> <kafka_host_address>:9363/metrics