Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsu committed Sep 11, 2012
1 parent 6d217eb commit 9c96df0
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ server.run();

Quickstart config:

```yaml
```yml
dashboard:
port: 2468

Expand Down Expand Up @@ -70,21 +70,37 @@ Here are some
examples of how you can use sensors and their strategies:
*tcp*
```yaml
```yml
strategy: tcp
host: google.com
port: 80
```
*http*
```yaml
```yml
strategy: http
url: https://www.google.com
```
*pidfile*
```yaml
```yml
strategy: pidfile
pidfile: /var/pids/mysql.pid
```
*redis*
```yml
strategy: redis
host: localhost # defaults to localhost
port: 6379 # defaults to 6379
command: [ 'exists', 'foo' ]
```
*mysql*
```yml
strategy: mysql
host: host # required
user: user # required
password: pass # required
sql: "SELECT * FROM users LIMIT 1" # defaults to "SHOW TABLES"
```

0 comments on commit 9c96df0

Please sign in to comment.