Skip to Content

Configuration syntax

The configuration format used by foniod is TOML.

The primary goal of the configuration system is to set up the grains and the processing pipelines used by foniod.

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.

Back to top