> For the complete documentation index, see [llms.txt](https://tine.thingsme.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tine.thingsme.xyz/getting-started/concept/multiple-inlets-and-outlets.md).

# Multiple Inlets and Outlets

A pipeline may have multiple inlets and outlets.

<figure><img src="/files/M9LRaTnVS2x7RIolBb5R" alt="" width="563"><figcaption><p>A pipeline with multiple inlets and outlets</p></figcaption></figure>

The example below shows a simple example.

```toml
[[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.

```sh
$ 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}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tine.thingsme.xyz/getting-started/concept/multiple-inlets-and-outlets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
