Skip to content

bjaggi/ccloudexporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus exporter for Confluent Cloud Metrics API

A simple prometheus exporter that can be used to extract metrics from Confluent Cloud Metric API. By default, the scrapper will be exposing the metrics on port 2112 To use the scrapper, the following environment variables need to be specified:

  • CCLOUD_USER: Your Confluent Cloud login
  • CCLOUD_PASSWORD: Your Confluent Cloud password

CCLOUD_USER and CCLOUD_PASSWORD environment variables will be used to invoke the https://api.telemetry.confluent.cloud endpoint.

Usage

./ccloudexporter <cluster_id> [kafka client configuration]

Examples

Building and executing

go get github.com/Dabz/ccloudexporter/cmd/ccloudexporter
go install github.com/Dabz/ccloudexporter/cmd/ccloudexporter
export [email protected]
export CCLOUD_PASSWORD=totopassword
./ccloudexporter lkc-abc123  

Using docker

docker run -e CCLOUD_USER=$CCLOUD_USER -e CCLOUD_PASSWORD=$CCLOUD_PASSWORD dabz/ccloudexporter:latest ccloudexporter lkc-abc123

Using docker-compose

export [email protected]
export CCLOUD_PASSWORD=totopassword
export CCLOUD_CLUSTER=lkc-abc123
docker-compose up -d

How to build

go get github.com/Dabz/ccloudexporter/cmd/ccloudexporter

About

Prometheus exporter for Confluent Cloud API metric

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.4%
  • Makefile 2.5%
  • Other 1.1%