-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Kapacitor Scripts | ||
================= | ||
|
||
These configure Kapacitor to make new data streams or alerts or what not. | ||
|
||
Installation | ||
------------- | ||
|
||
To add a new script, something like this: | ||
|
||
kapacitor -url http://admin:<password>@kapacitor.lab11.eecs.umich.edu define <taskname> -tick <script.tick> | ||
|
||
|
||
Setup | ||
----- | ||
|
||
Install Kapacitor 1.13.1 only. Not master from github. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
stream | ||
// Select the occupancy measurement for all rooms | ||
|from() | ||
.measurement('occupancy') | ||
// device id in this case is the room number | ||
|groupBy('device_id') | ||
// make it available via HTTP GET (/kapacitor/v1/tasks/occupancy/all-rooms) | ||
|httpOut('all-rooms') |