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.
5
3
6
4
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.
5
+
6
+
For Prometheus-based metrics, see the [Node Exporter Metrics input plugin](node-exporter-metrics).
8
7
9
8
## Configuration Parameters
10
9
@@ -26,15 +25,36 @@ In order to start performing the checks, you can run the plugin from the command
26
25
27
26
The following example will check the health of _crond_ process.
28
27
29
-
```bash
28
+
```shell
30
29
$ fluent-bit -i proc -p proc_name=crond -o stdout
31
30
```
32
31
33
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:
35
+
36
+
{% tabs %}
37
+
{% tab title="fluent-bit.yaml" %}
38
+
39
+
```yaml
40
+
pipeline:
41
+
inputs:
42
+
- name: proc
43
+
proc_name: crond
44
+
interval_sec: 1
45
+
interval_nsec: 0
46
+
fd: true
47
+
mem: true
48
+
49
+
outputs:
50
+
- name: stdout
51
+
match: '*'
52
+
```
53
+
54
+
{% endtab %}
55
+
{% tab title="fluent-bit.conf" %}
36
56
37
-
```python
57
+
```text
38
58
[INPUT]
39
59
Name proc
40
60
Proc_Name crond
@@ -48,21 +68,41 @@ In your main configuration file append the following _Input_ & _Output_ sections
48
68
Match *
49
69
```
50
70
71
+
{% endtab %}
72
+
{% endtabs %}
73
+
51
74
## Testing
52
75
53
76
Once Fluent Bit is running, you will see the health of process:
0 commit comments