Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit 9c96df0a457ea81f6118057c8a9f8ccdc4fcea0c 1 parent 6d217eb
@jeffsu authored
Showing with 20 additions and 4 deletions.
  1. +20 −4 README.md
View
24 README.md
@@ -29,7 +29,7 @@ server.run();
Quickstart config:
-```yaml
+```yml
dashboard:
port: 2468
@@ -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: http://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"
+```
Please sign in to comment.
Something went wrong with that request. Please try again.