-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Kafka connect exporter | ||
|
||
A [Prometheus](https://prometheus.io/) exporter that collects [Kafka connect](https://docs.confluent.io/current/connect/index.html) metrics. | ||
|
||
### Usage | ||
|
||
```sh | ||
$ ./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 | ||
``` |