Skip to content

Commit

Permalink
updates for broker-host
Browse files Browse the repository at this point in the history
  • Loading branch information
hokiegeek2 authored and andreas-schroeder committed Aug 10, 2017
1 parent 3dde610 commit fc73a0e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Health checker for Kafka brokers and clusters that operates by checking whether:

```
kafka-health-check usage:
-broker-host string
ip address or hostname of broker host
-broker-id uint
id of the Kafka broker to health check (default 0)
-broker-port uint
Expand All @@ -42,7 +44,7 @@ kafka-health-check usage:
Broker health can be queried at `/`:

```
$ curl -s localhost:8000/
$ curl -s <broker-host>:8000/
{"status":"sync"}
```

Expand All @@ -58,7 +60,7 @@ Return codes and status values are:
The returned json contains details about replicas the broker is lagging behind:

```
$ curl -s localhost:8000/
$ curl -s <broker-host>:8000/
{"status":"imok","out-of-sync":[{"topic":"mytopic","partition":0}],"replication-failures":1}
```

Expand All @@ -67,7 +69,7 @@ $ curl -s localhost:8000/
Cluster health can be queried at `/cluster`:

```
$ curl -s localhost:8000/cluster
$ curl -s <broker-host>:8000/cluster
{"status":"green"}
```

Expand All @@ -79,7 +81,7 @@ Return codes and status values are:
The returned json contains details about metadata status and partition replication:

```
$ curl -s localhost:8000/cluster
$ curl -s <broker-host>:8000/cluster
{"status":"yellow","topics":[
{"topic":"mytopic","Status":"yellow","partitions":{
"2":{"status":"yellow","OSR":[3]},
Expand Down

0 comments on commit fc73a0e

Please sign in to comment.