Kapacitor state module.
This module accepts connection configuration details either as parameters or as configuration settings in /etc/salt/minion on the relevant minions:
kapacitor.host: 'localhost'
kapacitor.port: 9092
This data can also be passed into pillar. Options passed into opts will overwrite options passed into pillar.
New in version 2016.11.0.
salt.states.kapacitor.
task_absent
(name)¶Ensure that a task is absent from Kapacitor.
Name of the task.
salt.states.kapacitor.
task_present
(name, tick_script, task_type='stream', database=None, retention_policy='default', enable=True)¶Ensure that a task is present and up-to-date in Kapacitor.
Name of the task.
Path to the TICK script for the task. Can be a salt:// source.
Task type. Defaults to 'stream'
Which database to fetch data from. Defaults to None, which will use the default database in InfluxDB.
Which retention policy to fetch data from. Defaults to 'default'.
Whether to enable the task or not. Defaults to True.