Peter Parkanyi edited this page Aug 17, 2018 · 1 revision

The configuration format used by ingraind is TOML.

The primary goal of the configuration system is to set up the grains and the processing pipelines used by ingraind. As a rule of thumb, all settings that are sensitive (eg. credentials), or can change on every deployment, will be taken from environment variables.

The TOML file has two sections: the probes, and the pipelines. The probe array contains the configuration for the probes, and a single entry looks like this:

pipelines = ["my_pipeline", "another_pipeline"]

type = "Files"
monitor_dirs = ["/"]

The probe has to specify a list of pipelines that will receive its data. The probe.config section configures the probe itself; the type attribute is mandatory, anything else is probe dependent.

The different brackets in [[probe]] and [probe.config] are intentional: [[probe]] means a new entry in the probe array, while [probe.config] means "the config attribute of the probe".

The pipelines are named sequences of actions. Some steps in the pipeline will have state, so be aware that multiple probes targeting the pipeline with the same name, will use the same instance of the pipeline.

Configuration of pipelines looks like this:

backend = "StatsD"
use_tags = true

type = "Whitelist"
allow = ["k1", "k2"]

type = "AddSystemDetails"

type = "Buffer"
interval_s = 30

The distinction between the [pipeline.statsd.config] and [[pipeline.statsd.steps]] are the same as previously.

Events generated by the probe will hit the first step in the pipeline. Steps are defined in sequence, and events will trickle through every step, unless they are filtered out.

The specifies which backend is used to transmit or store the events after every step in the pipeline is complete, and is a mandatory attribute. Other attributes in the section are dependent on the given backend.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.