Morgoth can run as either a standalone daemon that listens on a socket or be invoked as a child process of Kapacitor.
To use Morgoth as a socket UDF start the morgoth process with the
$ morgoth -socket /path/to/morgoth/socket
Next you will need to configure Kapacitor to use the morgoth socket.
[udf] [udf.functions] [udf.functions.morgoth] socket = "/path/to/morgoth/socket" timeout = "10s"
To use Morgoth as a child process of Kapacitor all you need to do is configure Kapacitor.
[udf] [udf.functions] [udf.functions.morgoth] prog = "/path/to/bin/morgoth" timeout = "10s"
Morgoth allows different logging levels DEBUG, INFO, WARN, ERROR or OFF.
You can set the default logging level via the flag
$ morgoth -log-level warn