website: update docs for multiple checks in config

This commit is contained in:
Ryan Uber 2014-10-26 13:24:23 -07:00
parent 28f31a8dd8
commit f03bbb8daa
2 changed files with 27 additions and 1 deletions

View File

@ -85,3 +85,28 @@ a specific meaning. Specifically:
This is the only convention that Consul depends on. Any output of the script
will be captured and stored in the `notes` field so that it can be viewed
by human operators.
## Multiple Check Definitions
Multiple check definitions can be provided at once using the `checks` (plural)
key in your configuration file.
```javascript
{
"checks": [
{
"id": "chk1",
"name": "mem",
"script": "/bin/check_mem",
"interval": "5s",
},
{
"id": "chk2",
"name": "cpu",
"script": "/bin/check_cpu",
"interval": "10s",
},
...
]
}
```

View File

@ -64,7 +64,8 @@ service can be registered dynamically using the [HTTP API](/docs/agent/http.html
## Multiple Service Definitions
Multiple services definitions can be provided at once. Single and mutiple service definitions can't be provided together in one configuration file.
Multiple services definitions can be provided at once using the `services`
(plural) key in your configuration file.
```javascript
{