A simple prometheus exporter that can be used to extract metrics from Confluent Cloud Metric API. By default, the exporter will be exposing the metrics on port 2112 To use the exporter, the following environment variables need to be specified:
CCLOUD_USER
: Your Confluent Cloud login, or the API Key created withccloud api-key create --resource cloud
CCLOUD_PASSWORD
: Your Confluent Cloud password, or the API Key Secret when created withccloud api-key create --resource cloud
CCLOUD_USER
and CCLOUD_PASSWORD
environment variables will be used to invoke the https://api.telemetry.confluent.cloud endpoint.
./ccloudexporter -cluster <cluster_id>
go get github.com/Dabz/ccloudexporter/cmd/ccloudexporter
go install github.com/Dabz/ccloudexporter/cmd/ccloudexporter
export [email protected]
export CCLOUD_PASSWORD=totopassword
./ccloudexporter -cluster lkc-abc123
docker run -e CCLOUD_USER=$CCLOUD_USER -e CCLOUD_PASSWORD=$CCLOUD_PASSWORD dabz/ccloudexporter:latest ccloudexporter -cluster lkc-abc123
export [email protected]
export CCLOUD_PASSWORD=totopassword
export CCLOUD_CLUSTER=lkc-abc123
docker-compose up -d
go get github.com/Dabz/ccloudexporter/cmd/ccloudexporter
A simple Grafana dashboard is provided in ./grafana/ folder.