1
1
# Thermal
2
2
3
- The ** thermal ** input plugin reports system temperatures periodically -- each second by default. Currently, this plugin is only available for Linux.
3
+ The _ Thermal _ input plugin reports system temperatures. This plugin is available only for Linux.
4
4
5
- The following tables describes the information generated by the plugin.
5
+ The following table describes the information generated by the plugin:
6
6
7
- | key | description |
8
- | :--- | :--- |
9
- | name | The name of the thermal zone, such as _ thermal \_ zone0 _ |
10
- | type | The type of the thermal zone, such as _ x86 \_ pkg \_ temp _ |
11
- | temp | Current temperature in celsius |
7
+ | Key | Description |
8
+ | :-- | :------- --- |
9
+ | ` name ` | The name of the thermal zone, such as ` thermal_zone0 ` . |
10
+ | ` type ` | The type of the thermal zone, such as ` x86_pkg_temp ` . |
11
+ | ` temp ` | Current temperature in Celsius. |
12
12
13
- ## Configuration Parameters
13
+ ## Configuration parameters
14
14
15
15
The plugin supports the following configuration parameters:
16
16
17
- | Key | Description |
18
- | :--- | :--- |
19
- | Interval\_ Sec | Polling interval \( seconds\) . default: 1 |
20
- | Interval\_ NSec | Polling interval \( nanoseconds\) . default: 0 |
21
- | name\_ regex | Optional name filter regex. default: None |
22
- | type\_ regex | Optional type filter regex. default: None |
23
- | Threaded | Indicates whether to run this input in its own [ thread] ( ../../administration/multithreading.md#inputs ) . Default: ` false ` . |
17
+ | Key | Description | Default |
18
+ | :--- | :--- | :--- |
19
+ | ` Interval_Sec ` | Polling interval (seconds). | ` 1 ` |
20
+ | ` Interval_NSec ` | Polling interval (nanoseconds). | ` 0 ` |
21
+ | ` name_regex ` | Optional name filter regular expression. | _ none_ |
22
+ | ` type_regex ` | Optional type filter regular expression. | _ none_ |
23
+ | ` Threaded ` | Indicates whether to run this input in its own [ thread] ( ../../administration/multithreading.md#inputs ) . | ` false ` . |
24
+
25
+ ## Get started
24
26
25
- ## Getting Started
27
+ To get the temperature of your system, you can run the plugin from the command line or through the configuration file.
26
28
27
- In order to get temperature \( s \) of your system, you can run the plugin from the command line or through the configuration file:
29
+ ### Command line
28
30
29
- ### Command Line
31
+ Run Fluent Bit from the command line with the following command:
30
32
31
- ``` shell
32
- $ ./fluent-bit -i thermal -t my_thermal -o stdout -m ' *'
33
+ ``` bash
34
+ bin/fluent-bit -i thermal -t my_thermal -o stdout -m ' *'
35
+ ```
36
+
37
+ You should see output similar to the following:
33
38
34
- Fluent Bit v4.0.3
35
- * Copyright (C) 2015-2025 The Fluent Bit Authors
39
+ ``` text
40
+ Fluent Bit v1.x.x
41
+ * Copyright (C) 2019-2020 The Fluent Bit Authors
42
+ * Copyright (C) 2015-2018 Treasure Data
36
43
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
37
44
* https://fluentbit.io
38
45
@@ -59,15 +66,17 @@ ______ _ _ ______ _ _ ___ _____
59
66
[2] my_thermal: [1566099586.000083156, {"name"=>"thermal_zone0", "type"=>"x86_pkg_temp", "temp"=>59.000000}]
60
67
```
61
68
62
- Some systems provide multiple thermal zones. In this example monitor only _ thermal \_ zone0 _ by name, once per minute.
69
+ Some systems provide multiple thermal zones. This example monitors only ` thermal_zone0 ` by name, once per minute:
63
70
64
- ``` shell
65
- $ ./fluent-bit -i thermal -t my_thermal -p " interval_sec=60" -p " name_regex=thermal_zone0" -o stdout -m ' *'
71
+ ``` bash
72
+ bin/fluent-bit -i thermal -t my_thermal -p " interval_sec=60" -p " name_regex=thermal_zone0" -o stdout -m ' *'
73
+ ```
66
74
67
- Fluent Bit v4.0.3
68
- * Copyright (C) 2015-2025 The Fluent Bit Authors
69
- * Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
70
- * https://fluentbit.io
75
+ Which returns output similar to:
76
+
77
+ ``` text
78
+ Fluent Bit v1.3.0
79
+ Copyright (C) Treasure Data
71
80
72
81
______ _ _ ______ _ _ ___ _____
73
82
| ___| | | | | ___ (_) | / || _ |
@@ -91,7 +100,7 @@ ______ _ _ ______ _ _ ___ _____
91
100
[0] my_temp: [1565759602.001661061, {"name"=>"thermal_zone0", "type"=>"pch_skylake", "temp"=>48.500000}]
92
101
```
93
102
94
- ### Configuration File
103
+ ### Configuration file
95
104
96
105
In your main configuration file append the following:
97
106
0 commit comments