Skip to content

Commit

Permalink
Documentation/v2: update /health response
Browse files Browse the repository at this point in the history
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Jul 26, 2017
1 parent 943ae95 commit 0fb6781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Documentation/v2/admin_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ It is important to monitor your production etcd cluster for healthy information

#### Health Monitoring

At lowest level, etcd exposes health information via HTTP at `/health` in JSON format. If it returns `{"health": "true"}`, then the cluster is healthy. Please note the `/health` endpoint is still an experimental one as in etcd 2.2.
At lowest level, etcd exposes health information via HTTP at `/health` in JSON format. If it returns `{"health":true}`, then the cluster is healthy. Please note the `/health` endpoint is still an experimental one as in etcd 2.2.

```
$ curl -L http://127.0.0.1:2379/health
{"health": "true"}
{"health":true}
```

You can also use etcdctl to check the cluster-wide health information. It will contact all the members of the cluster and collect the health information for you.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/v2/other_apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ curl http://10.0.0.10:2379/health
```

```json
{"health": "true"}
{"health":true}
```

0 comments on commit 0fb6781

Please sign in to comment.