Skip to content

Commit af279ac

Browse files
Merge pull request #1446 from fluent/add-threading-info
Add threading info
2 parents 87f3c92 + 9f62939 commit af279ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+79
-35
lines changed

pipeline/inputs/collectd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The plugin supports the following configuration parameters:
1111
| Listen | Set the address to listen to | 0.0.0.0 |
1212
| Port | Set the port to listen to | 25826 |
1313
| TypesDB | Set the data specification file | /usr/share/collectd/types.db |
14+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1415

1516
## Configuration Examples <a id="config_example"></a>
1617

@@ -31,4 +32,3 @@ Here is a basic configuration example.
3132
With this configuration, Fluent Bit listens to `0.0.0.0:25826`, and outputs incoming datagram packets to stdout.
3233

3334
You must set the same types.db files that your collectd server uses. Otherwise, Fluent Bit may not be able to interpret the payload properly.
34-

pipeline/inputs/cpu-metrics.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ The **cpu** input plugin, measures the CPU usage of a process or the whole syste
44

55
The following tables describes the information generated by the plugin. The keys below represent the data used by the overall system, all values associated to the keys are in a percentage unit \(0 to 100%\):
66

7-
The CPU metrics plugin creates metrics that are log-based \(I.e. JSON payload\). If you are looking for Prometheus-based metrics please see the Node Exporter Metrics input plugin.
7+
The CPU metrics plugin creates metrics that are log-based, such as JSON payload. For
8+
Prometheus-based metrics, see the Node Exporter Metrics input plugin.
89

910
| key | description |
1011
| :--- | :--- |
1112
| cpu\_p | CPU usage of the overall system, this value is the summation of time spent on user and kernel space. The result takes in consideration the numbers of CPU cores in the system. |
1213
| user\_p | CPU usage in User mode, for short it means the CPU usage by user space programs. The result of this value takes in consideration the numbers of CPU cores in the system. |
1314
| system\_p | CPU usage in Kernel mode, for short it means the CPU usage by the Kernel. The result of this value takes in consideration the numbers of CPU cores in the system. |
15+
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
1416

1517
In addition to the keys reported in the above table, a similar content is created **per** CPU core. The cores are listed from _0_ to _N_ as the Kernel reports:
1618

pipeline/inputs/disk-io-metrics.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
The **disk** input plugin, gathers the information about the disk throughput of the running system every certain interval of time and reports them.
44

5-
The Disk I/O metrics plugin creates metrics that are log-based \(I.e. JSON payload\). If you are looking for Prometheus-based metrics please see the Node Exporter Metrics input plugin.
5+
The Disk I/O metrics plugin creates metrics that are log-based, such as JSON payload.
6+
For Prometheus-based metrics, see the Node Exporter Metrics input plugin.
67

78
## Configuration Parameters
89

@@ -13,6 +14,7 @@ The plugin supports the following configuration parameters:
1314
| Interval\_Sec | Polling interval \(seconds\). | 1 |
1415
| Interval\_NSec | Polling interval \(nanosecond\). | 0 |
1516
| Dev\_Name | Device name to limit the target. \(e.g. sda\). If not set, _in\_disk_ gathers information from all of disks and partitions. | all disks |
17+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1618

1719
## Getting Started
1820

@@ -72,4 +74,3 @@ pipeline:
7274
Note: Total interval \(sec\) = Interval\_Sec + \(Interval\_Nsec / 1000000000\).
7375
7476
e.g. 1.5s = 1s + 500000000ns
75-

pipeline/inputs/docker-events.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This plugin supports the following configuration parameters:
1414
| Key | When a message is unstructured \(no parser applied\), it's appended as a string under the key name _message_. | message |
1515
| Reconnect.Retry_limits| The maximum number of retries allowed. The plugin tries to reconnect with docker socket when EOF is detected. | 5 |
1616
| Reconnect.Retry_interval| The retrying interval. Unit is second. | 1 |
17+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1718

1819
### Command Line
1920

pipeline/inputs/docker-metrics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The plugin supports the following configuration parameters:
1515
| Interval_Sec | Polling interval in seconds | 1 |
1616
| Include | A space-separated list of containers to include | |
1717
| Exclude | A space-separated list of containers to exclude | |
18+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1819

1920
If you set neither `Include` nor `Exclude`, the plugin will try to get metrics from _all_ the running containers.
2021

pipeline/inputs/dummy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The plugin supports the following configuration parameters:
1818
| Samples | If set, the events number will be limited. For example, if Samples=3, the plugin generates only three events and stops. | _none_ |
1919
| Copies | Number of messages to generate each time they are generated. | `1` |
2020
| Flush\_on\_startup | If set to `true`, the first dummy event is generated at startup. | `false` |
21+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
2122

2223
## Getting Started
2324

pipeline/inputs/elasticsearch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The plugin supports the following configuration parameters:
1414
| meta\_key | Specify a key name for meta information. | "@meta" |
1515
| hostname | Specify hostname or FQDN. This parameter can be used for "sniffing" (auto-discovery of) cluster node information. | "localhost" |
1616
| version | Specify Elasticsearch server version. This parameter is effective for checking a version of Elasticsearch/OpenSearch server version. | "8.0.0" |
17+
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1718

1819
**Note:** The Elasticsearch cluster uses "sniffing" to optimize the connections between its cluster and clients.
1920
Elasticsearch can build its cluster and dynamically generate a connection list which is called "sniffing".

pipeline/inputs/exec-wasi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The plugin supports the following configuration parameters:
1717
| Wasm\_Stack\_Size | Size of the stack size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
1818
| Buf\_Size | Size of the buffer \(check [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values\) |
1919
| Oneshot | Only run once at startup. This allows collection of data precedent to fluent-bit's startup (bool, default: false) |
20+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
2021

2122
## Configuration Examples
2223

pipeline/inputs/exec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The plugin supports the following configuration parameters:
2525
| Oneshot | Only run once at startup. This allows collection of data precedent to fluent-bit's startup (bool, default: false) |
2626
| Exit\_After\_Oneshot | Exit as soon as the one-shot command exits. This allows the exec plugin to be used as a wrapper for another command, sending the target command's output to any fluent-bit sink(s) then exiting. (bool, default: false) |
2727
| Propagate\_Exit\_Code | When exiting due to Exit\_After\_Oneshot, cause fluent-bit to exit with the exit code of the command exited by this plugin. Follows [shell conventions for exit code propagation](https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html). (bool, default: false) |
28+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
2829

2930
## Getting Started
3031

pipeline/inputs/fluentbit-metrics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ They can be sent to output plugins including [Prometheus Exporter](../outputs/pr
1212
**Important note:** Metrics collected with Node Exporter Metrics flow through a separate pipeline from logs and current filters do not operate on top of metrics.
1313

1414

15-
## Configuration
15+
## Configuration
1616

1717
| Key | Description | Default |
1818
| --------------- | --------------------------------------------------------------------------------------------------------- | --------- |
1919
| scrape_interval | The rate at which metrics are collected from the host operating system | 2 seconds |
2020
| scrape_on_start | Scrape metrics upon start, useful to avoid waiting for 'scrape_interval' for the first round of metrics. | false |
21+
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
2122

2223

2324
## Getting Started

pipeline/inputs/forward.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The plugin supports the following configuration parameters:
2020
| Shared\_Key | Shared key for secure forward authentication. | |
2121
| Self\_Hostname | Hostname for secure forward authentication. | |
2222
| Security.Users | Specify the username and password pairs for secure forward authentication. | |
23+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
2324

2425
## Getting Started
2526

@@ -142,4 +143,3 @@ Copyright (C) Treasure Data
142143
[2016/10/07 21:49:40] [ info] [in_fw] binding 0.0.0.0:24224
143144
[0] my_tag: [1475898594, {"key 1"=>123456789, "key 2"=>"abcdefg"}]
144145
```
145-

pipeline/inputs/head.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The plugin supports the following configuration parameters:
1616
| Key | Rename a key. Default: head. |
1717
| Lines | Line number to read. If the number N is set, in\_head reads first N lines like head\(1\) -n. |
1818
| Split\_line | If enabled, in\_head generates key-value pair per line. |
19+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
1920

2021
### Split Line Mode
2122

@@ -84,7 +85,7 @@ pipeline:
8485
Output is
8586
8687
```bash
87-
$ bin/fluent-bit -c head.conf
88+
$ bin/fluent-bit -c head.conf
8889
Fluent Bit v1.x.x
8990
* Copyright (C) 2019-2020 The Fluent Bit Authors
9091
* Copyright (C) 2015-2018 Treasure Data
@@ -162,4 +163,3 @@ pipeline:
162163
Note: Total interval \(sec\) = Interval\_Sec + \(Interval\_Nsec / 1000000000\).
163164
164165
e.g. 1.5s = 1s + 500000000ns
165-

pipeline/inputs/health.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The plugin supports the following configuration parameters:
1515
| Alert | If enabled, it will only generate messages if the target TCP service is down. By default this option is disabled. |
1616
| Add\_Host | If enabled, hostname is appended to each records. Default value is _false_. |
1717
| Add\_Port | If enabled, port number is appended to each records. Default value is _false_. |
18+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
1819

1920
## Getting Started
2021

@@ -87,4 +88,3 @@ Fluent Bit v1.8.0
8788
[2] health.0: [1624145990.306498573, {"alive"=>true}]
8889
[3] health.0: [1624145991.305595498, {"alive"=>true}]
8990
```
90-

pipeline/inputs/http.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ description: The HTTP input plugin allows you to send custom records to an HTTP
1515
| buffer_chunk_size | This sets the chunk size for incoming incoming JSON messages. These chunks are then stored/managed in the space available by buffer_max_size. | 512K |
1616
| successful_response_code | It allows to set successful response code. `200`, `201` and `204` are supported. | 201 |
1717
| success_header | Add an HTTP header key/value pair on success. Multiple headers can be set. Example: `X-Custom custom-answer` | |
18+
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1819

1920
### TLS / SSL
2021

pipeline/inputs/kafka.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This plugin uses the official [librdkafka C library](https://github.com/edenhill
1515
| poll\_ms | Kafka brokers polling interval in milliseconds. | 500 |
1616
| Buffer\_Max\_Size | Specify the maximum size of buffer per cycle to poll kafka messages from subscribed topics. To increase throughput, specify larger size. | 4M |
1717
| rdkafka.{property} | `{property}` can be any [librdkafka properties](https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md) | |
18+
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1819

1920
## Getting Started
2021

@@ -45,7 +46,8 @@ In your main configuration file append the following _Input_ & _Output_ sections
4546

4647
#### Example of using kafka input/output plugins
4748

48-
The fluent-bit source repository contains a full example of using fluent-bit to process kafka records:
49+
The Fluent Bit source repository contains a full example of using Fluent Bit to
50+
process Kafka records:
4951

5052
```text
5153
[INPUT]

pipeline/inputs/kernel-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The **kmsg** input plugin reads the Linux Kernel log buffer since the beginning,
77
| Key | Description | Default |
88
| :--- | :--- | :--- |
99
| Prio_Level | The log level to filter. The kernel log is dropped if its priority is more than prio_level. Allowed values are 0-8. Default is 8. 8 means all logs are saved. | 8 |
10+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1011

1112
## Getting Started
1213

@@ -60,4 +61,3 @@ pipeline:
6061
```
6162
{% endtab %}
6263
{% endtabs %}
63-

pipeline/inputs/kubernetes-events.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Kubernetes exports it events through the API server. This input plugin allows to
3131

3232
- _* As of Fluent-Bit 3.1, this plugin uses a Kubernetes watch stream instead of polling. In versions before 3.1, the interval parameters are used for reconnecting the Kubernetes watch stream._
3333

34+
## Threading
35+
36+
This input always runs in its own [thread](../../administration/multithreading.md#inputs).
3437

3538
## Getting Started
3639

pipeline/inputs/memory-metrics.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Fluent Bit v1.x.x
2323
[3] memory: [1488543159, {"Mem.total"=>1016044, "Mem.used"=>841420, "Mem.free"=>174624, "Swap.total"=>2064380, "Swap.used"=>139888, "Swap.free"=>1924492}]
2424
```
2525

26+
## Threading
27+
28+
You can enable the `threaded` setting to run this input in its own
29+
[thread](../../administration/multithreading.md#inputs).
30+
2631
### Configuration File
2732

2833
In your main configuration file append the following _Input_ & _Output_ sections:

pipeline/inputs/mqtt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The plugin supports the following configuration parameters:
1111
| Listen | Listener network interface. | `0.0.0.0` |
1212
| Port | TCP port where listening for connections. | `1883` |
1313
| Payload_Key | Specify the key where the payload key/value will be preserved. | _none_ |
14+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1415

1516
## Getting Started
1617

@@ -53,4 +54,3 @@ In your main configuration file append the following _Input_ & _Output_ sections
5354
Name stdout
5455
Match *
5556
```
56-

pipeline/inputs/network-io-metrics.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
The **netif** input plugin gathers network traffic information of the running system every certain interval of time, and reports them.
44

5-
The Network I/O Metrics plugin creates metrics that are log-based \(I.e. JSON payload\). If you are looking for Prometheus-based metrics please see the Node Exporter Metrics input plugin.
5+
The Network I/O Metrics plugin creates metrics that are log-based, such as JSON
6+
payload. For Prometheus-based metrics, see the Node Exporter Metrics input plugin.
67

78
## Configuration Parameters
89

@@ -15,6 +16,7 @@ The plugin supports the following configuration parameters:
1516
| Interval\_NSec | Polling interval \(nanosecond\). | 0 |
1617
| Verbose | If true, gather metrics precisely. | false |
1718
| Test\_At\_Init | If true, testing if the network interface is valid at initialization. | false |
19+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1820

1921
## Getting Started
2022

@@ -75,4 +77,3 @@ pipeline:
7577
Note: Total interval \(sec\) = Interval\_Sec + \(Interval\_Nsec / 1000000000\).
7678
7779
e.g. 1.5s = 1s + 500000000ns
78-

pipeline/inputs/nginx.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The plugin supports the following configuration parameters:
1212
| Port | Port of the target nginx service to connect to. | 80 |
1313
| Status_URL | The URL of the Stub Status Handler. | /status |
1414
| Nginx_Plus | Turn on NGINX plus mode. | true |
15+
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1516

1617
## Getting Started
1718

@@ -35,8 +36,8 @@ server {
3536

3637
### Configuration with NGINX Plus REST API
3738

38-
A much more powerful and flexible metrics API is available with NGINX Plus. A path needs to be configured
39-
in NGINX Plus first.
39+
Another metrics API is available with NGINX Plus. You must first configure a path in
40+
NGINX Plus.
4041

4142
```
4243
server {

pipeline/inputs/node-exporter-metrics.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ The following table describes the available collectors as part of this plugin. A
8181
| nvme | Exposes nvme statistics from `/proc`. | Linux | v2.2.0 |
8282
| processes | Exposes processes statistics from `/proc`. | Linux | v2.2.0 |
8383

84+
## Threading
85+
86+
This input always runs in its own [thread](../../administration/multithreading.md#inputs).
87+
8488
## Getting Started
8589

8690
### Simple Configuration File
@@ -114,7 +118,7 @@ In the following configuration file, the input plugin _node_exporter_metrics col
114118
host 0.0.0.0
115119
port 2021
116120
117-
121+
118122
```
119123
{% endtab %}
120124

@@ -201,4 +205,3 @@ docker-compose down
201205
Our current plugin implements a sub-set of the available collectors in the original Prometheus Node Exporter, if you would like that we prioritize a specific collector please open a Github issue by using the following template:\
202206
\
203207
\- [in_node_exporter_metrics](https://github.com/fluent/fluent-bit/issues/new?assignees=\&labels=\&template=feature_request.md\&title=in_node_exporter_metrics:%20add%20ABC%20collector)
204-

pipeline/inputs/opentelemetry.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Our compliant implementation fully supports OTLP/HTTP and OTLP/GRPC. Note that t
2020
| buffer_chunk_size | Initial size and allocation strategy to store the payload (advanced users only) | 512K |
2121
|successful_response_code | It allows to set successful response code. `200`, `201` and `204` are supported.| 201 |
2222
| tag_from_uri | If true, tag will be created from uri. e.g. v1_metrics from /v1/metrics . | true |
23+
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
2324

2425
Important note: Raw traces means that any data forwarded to the traces endpoint (`/v1/traces`) will be packed and forwarded as a log message, and will NOT be processed by Fluent Bit. The traces endpoint by default expects a valid protobuf encoded payload, but you can set the `raw_traces` option in case you want to get trace telemetry data to any of Fluent Bit's supported outputs.
2526

pipeline/inputs/podman-metrics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description: The Podman Metrics input plugin allows you to collect metrics from
1313
| path.config | Custom path to podman containers configuration file | /var/lib/containers/storage/overlay-containers/containers.json |
1414
| path.sysfs | Custom path to sysfs subsystem directory | /sys/fs/cgroup |
1515
| path.procfs | Custom path to proc subsystem directory | /proc |
16+
| threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1617

1718
## Getting Started
1819

0 commit comments

Comments
 (0)