salt.states.kapacitor module

Kapacitor state module.

configuration:

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
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
Name of the task.
tick_script
Path to the TICK script for the task. Can be a salt:// source.
task_type
Task type. Defaults to ‘stream’
database
Which database to fetch data from. Defaults to None, which will use the default database in InfluxDB.
retention_policy
Which retention policy to fetch data from. Defaults to ‘default’.
enable
Whether to enable the task or not. Defaults to True.

Docs for previous releases are available on readthedocs.org.

Latest Salt release: 2018.3.3

Previous topic

salt.states.k8s

Next topic

salt.states.kernelpkg