/kafka_connect_exporter

Prometheus exporter for Kafka connect.

Primary LanguageGoBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Kafka connect exporter

A Prometheus exporter that collects Kafka connect metrics.

Usage

$ ./kafka_connect_exporter -h
Usage of ./kafka_connect_exporter:
  -listen-address string
        Address on which to expose metrics. (default ":8080")
  -scrape-uri string
        URI on which to scrape kafka connect. (default "http://127.0.0.1:8080")
  -telemetry-path string
        Path under which to expose metrics. (default "/metrics")
  -version
        show version and exit

Metrics

# HELP kafka_connect_connector_state_running is the connector running?
# TYPE kafka_connect_connector_state_running gauge
kafka_connect_connector_state_running{connector="test-changesets",state="running",worker="kafka-connect:8083"} 1
# HELP kafka_connect_connector_tasks_state_running are connector tasks running?
# TYPE kafka_connect_connector_tasks_state_running gauge
kafka_connect_connector_tasks_state_running{connector="test-changesets",state="running",worker_id="kafka-connect:8083"} 1
# HELP kafka_connect_connectors_count number of deployed connectors
# TYPE kafka_connect_connectors_count gauge
kafka_connect_connectors_count 1
# HELP kafka_connect_up was the last scrape of kafka connect successful?
# TYPE kafka_connect_up gauge
kafka_connect_up 1