1
- # FlowCounter
1
+ # Flow counter
2
2
3
- _ FlowCounter _ is the protocol to count records. The ** flowcounter ** output plugin allows to count up records and its size.
3
+ The _ Flow counter _ output plugin lets you count up records and their size.
4
4
5
- ## Configuration Parameters
5
+ ## Configuration parameters
6
6
7
7
The plugin supports the following configuration parameters:
8
8
9
9
| Key | Description | Default |
10
10
| :--- | :--- | :--- |
11
- | Unit | The unit of duration. \( second/ minute/ hour/ day\) | minute |
12
- | Workers | The number of [ workers] ( ../../administration/multithreading.md#outputs ) to perform flush operations for this output. | ` 0 ` |
11
+ | ` Unit ` | The unit of duration. Allowed values: ` second ` , ` minute ` , ` hour ` , ` day ` | ` minute ` |
12
+ | ` Workers ` | The number of [ workers] ( ../../administration/multithreading.md#outputs ) to perform flush operations for this output. | ` 0 ` |
13
13
14
- ## Getting Started
14
+ ## Get started
15
15
16
- You can run the plugin from the command line or through the configuration file:
16
+ You can run the plugin from the command line or through the configuration file.
17
17
18
- ### Command Line
18
+ ### Command line
19
19
20
- From the command line you can let Fluent Bit count up a data with the following options:
20
+ From the command line you can let Fluent Bit count up data with the following options:
21
21
22
22
``` shell
23
23
fluent-bit -i cpu -o flowcounter
24
24
```
25
25
26
- ### Configuration File
26
+ ### Configuration file
27
27
28
28
In your main configuration file append the following:
29
29
@@ -35,7 +35,7 @@ pipeline:
35
35
inputs :
36
36
- name : cpu
37
37
tag : cpu
38
-
38
+
39
39
outputs :
40
40
- name : flowcounter
41
41
match : ' *'
@@ -61,10 +61,10 @@ pipeline:
61
61
62
62
## Testing
63
63
64
- Once Fluent Bit is running, you will see the reports in the output interface similar to this:
64
+ When Fluent Bit is running, you will see the reports in the output interface similar to this:
65
65
66
66
``` text
67
67
...
68
68
[out_flowcounter] cpu.0:[1482458540, {"counts":60, "bytes":7560, "counts/minute":1, "bytes/minute":126 }]
69
69
...
70
- ```
70
+ ```
0 commit comments