From d0db683be7700718b99cedb6fe13ba225e385324 Mon Sep 17 00:00:00 2001 From: "Eric D. Schabell" Date: Fri, 28 Nov 2025 12:13:58 +0100 Subject: [PATCH 1/3] Added PID to vale styles. Part of #2233. Signed-off-by: Eric D. Schabell --- vale-styles/FluentBit/Acronyms.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/vale-styles/FluentBit/Acronyms.yml b/vale-styles/FluentBit/Acronyms.yml index 40f37b2f1..550fb8d02 100644 --- a/vale-styles/FluentBit/Acronyms.yml +++ b/vale-styles/FluentBit/Acronyms.yml @@ -99,6 +99,7 @@ exceptions: - PATH - PEM - PDF + - PID - PHP - POSIX - POST From 6ab4974de07d849b704217fe260e0922d87f2f07 Mon Sep 17 00:00:00 2001 From: "Eric D. Schabell" Date: Fri, 28 Nov 2025 12:14:53 +0100 Subject: [PATCH 2/3] Fixed typos, sorted config table, moved a config option from metrics table. Fixes #2233. Signed-off-by: Eric D. Schabell --- pipeline/inputs/cpu-metrics.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pipeline/inputs/cpu-metrics.md b/pipeline/inputs/cpu-metrics.md index 2542dcac5..7b77df3f0 100644 --- a/pipeline/inputs/cpu-metrics.md +++ b/pipeline/inputs/cpu-metrics.md @@ -9,27 +9,27 @@ The CPU metrics plugin creates metrics that are log-based, such as JSON payload. | Key | Description | |:-----------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `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. | -| `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. | | `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. | -| `threaded` | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. | +| `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. | 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: | Key | Description | |:----------------|:-----------------------------------------------------------------------------| | `cpuN.p_cpu` | Represents the total CPU usage by core `N`. | -| `cpuN.p_user` | Total CPU spent in user mode or user space programs associated to this core. | | `cpuN.p_system` | Total CPU spent in system or kernel mode associated to this core. | +| `cpuN.p_user` | Total CPU spent in user mode or user space programs associated to this core. | ## Configuration parameters The plugin supports the following configuration parameters: -| Key | Description | Default | -|:---------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------| -| `Interval_Sec` | Polling interval in seconds. | `1` | -| `Interval_NSec | Polling interval in nanoseconds` | `0` | -| `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_ | +| Key | Description | Default | +|:-----------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------| +| `interval_nsec` | Polling interval in nanoseconds. | `0` | +| `interval_sec` | Polling interval in seconds. | `1` | +| `pid` | Specify the process 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_ | +| `threaded` | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` | ## Get started @@ -37,7 +37,7 @@ In order to get the statistics of the CPU usage of your system, you can run the ### Command line -You can run this filter from the command line using a command like the following: +You can run this input plugin from the command line using a command like the following: ```shell build/bin/fluent-bit -i cpu -t my_cpu -o stdout -m '*' From ce0e63ae3de98f13efcdb045d9acc97692213d74 Mon Sep 17 00:00:00 2001 From: "Eric D. Schabell" Date: Fri, 28 Nov 2025 12:25:52 +0100 Subject: [PATCH 3/3] Fixed review request gramatical. Signed-off-by: Eric D. Schabell --- pipeline/inputs/cpu-metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/inputs/cpu-metrics.md b/pipeline/inputs/cpu-metrics.md index 7b77df3f0..4b20d6596 100644 --- a/pipeline/inputs/cpu-metrics.md +++ b/pipeline/inputs/cpu-metrics.md @@ -33,7 +33,7 @@ The plugin supports the following configuration parameters: ## Get started -In order to get the statistics of the CPU usage of your system, you can run the plugin from the command line or through the configuration file: +To get the statistics of the CPU usage of your system, you can run the plugin from the command line or through the configuration file: ### Command line