Skip to content

Commit

Permalink
start on kapacitor files
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jun 19, 2016
1 parent c18fb95 commit 5f8040e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kapacitor/README.md
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.

8 changes: 8 additions & 0 deletions kapacitor/occupancy.tick
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')

0 comments on commit 5f8040e

Please sign in to comment.