A major mode for Tickscript files
Copyright Marc Sherry msherry@gmail.com
Provides Emacs font-lock, indentation, navigation, and utility functions for working with TICKscript, a DSL for use with Kapacitor and InfluxDB.
Available on MELPA and MELPA Stable -- installation from there is easiest:
M-x package-install tickscript-mode
Alternately, add the following to your .init.el:
(add-to-list 'load-path "path-to-tickscript-mode")
(require 'tickscript-mode)In addition to syntax highlighting and indentation support,
tickscript-mode provides a number of utility functions for working
directly with Kapacitor:
-
C-c C-c --
tickscript-define-taskSend the current task to Kapacitor via
kapacitor define. -
C-c C-v --
tickscript-show-taskView the current task's definition with
kapacitor show <task>. This will also render the DOT output inline, for easier visualization of the nodes involved. -
C-c C-l p --
tickscript-list-replays -
C-c C-l r --
tickscript-list-recordings -
C-c C-l t --
tickscript-list-tasksQuery Kapacitor for information about the specified objects.
Support is also provided for looking up node and property definitions:
-
C-c C-d --
tickscript-get-helpLook up the node, and possibly property, currently under point online.
