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
_Process_input plugin allows you to check how healthy a process is. It does so by performing a service check at every certain interval of time specified by the user.
4
+
The _Process metrics_input plugin lets you check how healthy a process is. It does so by performing a service check at a specified interval.
5
5
6
-
The Process metrics plugin creates metrics that are log-based, such as JSON payload.
7
-
For Prometheus-based metrics, see the Node Exporter Metrics input plugin.
6
+
This plugin creates metrics that are log-based, such as JSON payloads. For Prometheus-based metrics, see the [Node exporter metrics](../pipeline/inputs/node-exporter-metrics) input plugin.
8
7
9
-
## Configuration Parameters
8
+
## Configuration parameters
10
9
11
10
The plugin supports the following configuration parameters:
12
11
13
12
| Key | Description |
14
13
| :--- | :--- |
15
-
|Proc\_Name|Name of the target Process to check. |
16
-
|Interval\_Sec|Interval in seconds between the service checks. Default value is _1_. |
17
-
|Interval\_Nsec| Specify a nanoseconds interval for service checks, it works in conjunction with the Interval\_Sec configuration key. Default value is _0_. |
18
-
| Alert | If enabled, it will only generate messages if the target process is down. By default this option is disabled. |
19
-
|Fd| If enabled, a number of fd is appended to each records. Default value is true. |
20
-
| Mem | If enabled, memory usage of the process is appended to each records. Default value is true. |
21
-
| Threaded |Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
14
+
|`Proc_Name`|The name of the target process to check. |
15
+
|`Interval_Sec`|Specifies the interval between service checks, in seconds. Default: `1`. |
16
+
|`Interval_Nsec`| Specify the interval between service checks, in nanoseconds. This works in conjunction with `Interval_Sec`. Default: `0`. |
17
+
|`Alert`| If enabled, the plugin will only generate messages if the target process is down. Default: `false`. |
18
+
|`Fd`| If enabled, a number of `fd` is appended to each record. Default: `true`. |
19
+
|`Mem`| If enabled, memory usage of the process is appended to each record. Default: `true`. |
20
+
|`Threaded`|Specifies whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. |
22
21
23
-
## Getting Started
22
+
## Getting started
24
23
25
-
In order to start performing the checks, you can run the plugin from the command line or through the configuration file:
24
+
To start performing the checks, you can run the plugin from the command line or through the configuration file:
26
25
27
-
The following example will check the health of _crond_ process.
26
+
The following example checks the health of `crond` process.
28
27
29
28
```bash
30
29
$ fluent-bit -i proc -p proc_name=crond -o stdout
31
30
```
32
31
33
-
### Configuration File
32
+
### Configuration file
34
33
35
-
In your main configuration file append the following _Input_ & _Output_ sections:
34
+
In your main configuration file, append the following `Input` & `Output` sections:
36
35
37
36
```python
38
37
[INPUT]
@@ -50,7 +49,7 @@ In your main configuration file append the following _Input_ & _Output_ sections
50
49
51
50
## Testing
52
51
53
-
Once Fluent Bit is running, you will see the health of process:
52
+
After Fluent Bit starts running, it outputs the health of the process:
0 commit comments