Multiple Inlets and Outlets

A pipeline may have multiple inlets and outlets.

A pipeline with multiple inlets and outlets

The example below shows a simple example.

[[inlets.cpu]]
    percpu = false
    interval = "1s"
    count = 3
[[inlets.load]]
    loads = [1, 5]
    interval = "1s"
    count = 2
[[outlets.file]]
    path = "-"
    format = "json"
    decimal = 2
[[outlets.file]]
    path = "-"
    format = "csv"
    decimal = 2

If you run this pipeline, it will print out the cpu usage and load average in CSV and JSON format.

Last updated