On the host system:
$ docker-compose up -d
In the Kapacitor container:
$ kapacitor define alert -type stream -tick alert.tick -dbrp telegraf.autogen
$ kapacitor enable alert
On the host system running docker-compose:
$ cat sample | nc localhost 8094