Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Mar 27, 2015
1 parent a3f34ad commit aff75ed
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -15,6 +15,7 @@ Usase of ./consul-kv-dashboard:
-asset="": Serve files located in /assets from local directory. If not specified, use built-in asset.
-namespace="dashboard": Consul kv top level key name. (/v1/kv/{namespace}/...)
-port=3000: http listen port
-trigger="": trigger command
-v=false: show vesion
-version=false: show vesion
```
Expand Down Expand Up @@ -46,6 +47,20 @@ $ curl -X PUT -d "content" localhost:8500/v1/kv/dashboard/example/myhost?flags=1
* 2 : Danger
* 3 : Info

## Trigger

```
$ consul-kv-dashboard -trigger /path/to/command
```

Invoke trigger command when dashboard item's status was changed.

Pass a changed item (encoded as json) to command's stdin.

```json
{"category":"testing","node":"web01","address":"192.168.1.10","timestamp":"2015-01-21 11:22:33 +0900","status":"danger","key":"","data":"failure!!"}
```

## LICENSE

MIT

0 comments on commit aff75ed

Please sign in to comment.