You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixed code indents for examples in CollectD input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples in CPU log based metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples in Disk I/O log based metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples in Docker events input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples inDocker log based metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples in Dummy input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples in Ebpf input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples in Elasticsearch input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table format in Exec input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for collectd intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for cpu metrics intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for disk io log based metrics intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for docker events intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for docker log based metrics intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for dummy intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for elasticsearch intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed table formatting to markdown standards for exec wasi intput plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Fluent Bit Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Forward input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Head input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Health input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in HTTP input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Kafka input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Kernel Log input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Kubernetes Events input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Memory Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in MQTT input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Network I/O Log Based Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in NGINX input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in NGINX input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Node Exporter Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in OpenTelemtry input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Podman Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Process Log Based Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Process Exporter Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Prometheus Remote Write input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Prometheus Scrape Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Random input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Serial Interface input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Splunk input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Standard Input input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in StatsD input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Syslog input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Systemd input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Tail input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in TCP input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Thermal input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in UDP input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Windows Event Log input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Windows Event Log (winevtlog) input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Windows Exporter Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed shell useage in EBPF input plugin doc. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixed code indents for examples and table formatting in Windows Exporter Metrics input plugin. Part of issue #1954.
Signed-off-by: Eric D. Schabell <[email protected]>
---------
Signed-off-by: Eric D. Schabell <[email protected]>
Copy file name to clipboardExpand all lines: pipeline/inputs/cpu-metrics.md
+28-33Lines changed: 28 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,30 @@ The following tables describe the information generated by the plugin. The follo
6
6
7
7
The CPU metrics plugin creates metrics that are log-based, such as JSON payload. For Prometheus-based metrics, see the _Node Exporter Metrics_ input plugin.
8
8
9
-
| Key | Description |
10
-
|:---|:---|
11
-
|`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. |
12
-
|`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. |
13
-
|`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. |
14
-
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
|`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. |
12
+
|`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.|
13
+
|`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. |
14
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
15
15
16
16
In addition to the keys reported in the previous table, a similar content is created per CPU core. The cores are listed from `0` to `N` as the Kernel reports:
17
17
18
-
| Key | Description |
19
-
|:---|:---|
20
-
|`cpuN.p_cpu`| Represents the total CPU usage by core `N`. |
21
-
|`cpuN.p_user`| Total CPU spent in user mode or user space programs associated to this core. |
22
-
|`cpuN.p_system`| Total CPU spent in system or kernel mode associated to this core. |
|`cpuN.p_cpu`| Represents the total CPU usage by core `N`.|
21
+
|`cpuN.p_user`| Total CPU spent in user mode or user space programs associated to this core. |
22
+
|`cpuN.p_system`| Total CPU spent in system or kernel mode associated to this core. |
23
23
24
24
## Configuration parameters
25
25
26
26
The plugin supports the following configuration parameters:
27
27
28
-
| Key | Description | Default |
29
-
|:---|:---|:---|
30
-
|`Interval_Sec`| Polling interval in seconds. |`1`|
31
-
| `Interval_NSec | Polling interval in nanoseconds` |`0`|
32
-
|`PID`| Specify the `ID` (`PID`) of a running process in the system. By default, the plugin monitors the whole system but if this option is set, it will only monitor the given process ID. |_none_|
|`Interval_Sec`| Polling interval in seconds. |`1`|
31
+
| `Interval_NSec | Polling interval in nanoseconds` |`0`|
32
+
|`PID`| Specify the `ID` (`PID`) of a running process in the system. By default, the plugin monitors the whole system but if this option is set, it will only monitor the given process ID. |_none_|
As described previously, the CPU input plugin gathers the overall usage every one second and flushed the information to the output on the fifth second. This example uses the `stdout` plugin to demonstrate the output records. In a real use-case you might want to flush this information to some central aggregator such as [Fluentd](http://fluentd.org) or [Elasticsearch](http://elastic.co).
@@ -71,26 +66,26 @@ In your main configuration file append the following:
|`Dev_Name`| Device name to limit the target (for example, `sda`). If not set, `in_disk` gathers information from all of disks and partitions. | all disks |
16
-
|`Threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
|`Dev_Name`| Device name to limit the target (for example, `sda`). If not set, `in_disk` gathers information from all of disks and partitions. | all disks |
16
+
|`Threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
17
17
18
18
## Get started
19
19
@@ -30,17 +30,12 @@ fluent-bit -i disk -o stdout
30
30
Which returns information like the following:
31
31
32
32
```text
33
-
Fluent Bit v1.x.x
34
-
* Copyright (C) 2019-2020 The Fluent Bit Authors
35
-
* Copyright (C) 2015-2018 Treasure Data
36
-
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
|`Interval_Sec`| Polling interval in seconds |`1`|
12
-
|`Include`| A space-separated list of containers to include. |_none_|
13
-
|`Exclude`| A space-separated list of containers to exclude. |_none_|
14
-
|`Threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
15
-
|`path.containers`| Used to specify the container directory if Docker is configured with a custom `data-root` directory. |`/var/lib/docker/containers`|
|`Interval_Sec`| Polling interval in seconds |`1`|
12
+
|`Include`| A space-separated list of containers to include. |_none_|
13
+
|`Exclude`| A space-separated list of containers to exclude. |_none_|
14
+
|`Threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
15
+
|`path.containers`| Used to specify the container directory if Docker is configured with a custom `data-root` directory. |`/var/lib/docker/containers`|
16
16
17
17
If you set neither `Include` nor `Exclude`, the plugin will try to get metrics from all running containers.
18
18
@@ -25,25 +25,26 @@ The following example configuration collects metrics from two docker instances (
0 commit comments