TINE Docs
GitHub
  • Highlights
  • TINE
    • Install
  • GETTING STARTED
    • Quick start
    • Concept
      • Multiple Inlets and Outlets
      • Merge Records
      • Pipeline as Http Handler
    • Log config
  • Embedding TINE in Go
    • Use Recipe
    • Use API
  • Plugins
    • Inlets
    • Flows
    • Outlets
    • Extras
  • RECIPES
    • QRCode Generator
    • OLLAMA
    • OLLAMA Telegram Bot
    • Web Page Snapshot
    • Syslog Receiver
    • SQLite
    • RRD
Powered by GitBook
On this page
Edit on GitHub
  1. GETTING STARTED
  2. Concept

Multiple Inlets and Outlets

PreviousConceptNextMerge Records

Last updated 9 months ago

A pipeline may have 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.

$ tine run example.toml

2.19,3.45
{"load1":2.19,"load5":3.45}
{"total_percent":8.16}
8.16
{"load1":2.19,"load5":3.45}
{"total_percent":4.73}
2.19,3.45
4.73
2.62
{"total_percent":2.62}
A pipeline with multiple inlets and outlets