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
|`scrape_interval`| The rate at which metrics are collected. |`5 seconds`|
18
-
|`we.logical_disk.allow_disk_regex`| Specify the regular expression for logical disk metrics to allow collection of. |`"/.+/"` (all) |
19
-
|`we.logical_disk.deny_disk_regex`| Specify the regular expression for logical disk metrics to prevent collection of or ignore. |`NULL` (all) |
20
-
|`we.net.allow_nic_regex`| Specify the regular expression for network metrics captured by the name of the NIC. |`"/.+/"` (all) |
21
-
|`we.service.where`| Specify the `WHERE` clause for retrieving service metrics. |`NULL`|
22
-
|`we.service.include`| Specify the key value pairs for the include condition for the `WHERE` clause of service metrics. |`NULL`|
23
-
|`we.service.exclude`| Specify the key value pairs for the exclude condition for the `WHERE` clause of service metrics. |`NULL`|
24
-
|`we.process.allow_process_regex`| Specify the regular expression covering the process metrics to collect. |`"/.+/"` (all) |
25
-
|`we.process.deny_process_regex`| Specify the regular expression for process metrics to prevent collection of or ignore. |`NULL` (all) |
26
-
|`collector.cpu.scrape_interval`| The rate in seconds at which `cpu` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
27
-
|`collector.net.scrape_interval`| The rate in seconds at which `net` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
28
-
|`collector.logical_disk.scrape_interval`| The rate in seconds at which `logical_disk` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
29
-
|`collector.cs.scrape_interval`| The rate in seconds at which `cs` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
30
-
|`collector.os.scrape_interval`| The rate in seconds at which `os` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
31
-
|`collector.thermalzone.scrape_interval`| The rate in seconds at which `thermalzone` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
32
-
|`collector.cpu_info.scrape_interval`| The rate in seconds at which `cpu_info` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
33
-
|`collector.logon.scrape_interval`| The rate in seconds at which `logon` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
34
-
|`collector.system.scrape_interval`| The rate in seconds at which `system` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
35
-
|`collector.service.scrape_interval`| The rate in seconds at which `service` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
36
-
|`collector.memory.scrape_interval`| The rate in seconds at which `memory` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
37
-
|`collector.paging_file.scrape_interval`| The rate in seconds at which `paging_file` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
38
-
|`collector.process.scrape_interval`| The rate in seconds at which `process` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
39
-
|`metrics`| Specify which metrics are collected. |`"cpu,cpu_info,os,net,logical_disk,cs,thermalzone,logon,system,service"`|
|`scrape_interval`| The rate at which metrics are collected. |`5 seconds`|
18
+
|`we.logical_disk.allow_disk_regex`| Specify the regular expression for logical disk metrics to allow collection of. |`"/.+/"` (all)|
19
+
|`we.logical_disk.deny_disk_regex`| Specify the regular expression for logical disk metrics to prevent collection of or ignore. |`NULL` (all)|
20
+
|`we.net.allow_nic_regex`| Specify the regular expression for network metrics captured by the name of the NIC. |`"/.+/"` (all)|
21
+
|`we.service.where`| Specify the `WHERE` clause for retrieving service metrics. |`NULL`|
22
+
|`we.service.include`| Specify the key value pairs for the include condition for the `WHERE` clause of service metrics. |`NULL`|
23
+
|`we.service.exclude`| Specify the key value pairs for the exclude condition for the `WHERE` clause of service metrics. |`NULL`|
24
+
|`we.process.allow_process_regex`| Specify the regular expression covering the process metrics to collect. |`"/.+/"` (all)|
25
+
|`we.process.deny_process_regex`| Specify the regular expression for process metrics to prevent collection of or ignore. |`NULL` (all)|
26
+
|`collector.cpu.scrape_interval`| The rate in seconds at which `cpu` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
27
+
|`collector.net.scrape_interval`| The rate in seconds at which `net` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
28
+
|`collector.logical_disk.scrape_interval`| The rate in seconds at which `logical_disk` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
29
+
|`collector.cs.scrape_interval`| The rate in seconds at which `cs` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
30
+
|`collector.os.scrape_interval`| The rate in seconds at which `os` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
31
+
|`collector.thermalzone.scrape_interval`| The rate in seconds at which `thermalzone` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
32
+
|`collector.cpu_info.scrape_interval`| The rate in seconds at which `cpu_info` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
33
+
|`collector.logon.scrape_interval`| The rate in seconds at which `logon` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
34
+
|`collector.system.scrape_interval`| The rate in seconds at which `system` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
35
+
|`collector.service.scrape_interval`| The rate in seconds at which `service` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
36
+
|`collector.memory.scrape_interval`| The rate in seconds at which `memory` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
37
+
|`collector.paging_file.scrape_interval`| The rate in seconds at which `paging_file` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
38
+
|`collector.process.scrape_interval`| The rate in seconds at which `process` metrics are collected. Values greater than `0` override the global default. Otherwise, the global default is used. |`0 seconds`|
39
+
|`metrics`| Specify which metrics are collected.|`"cpu,cpu_info,os,net,logical_disk,cs,thermalzone,logon,system,service"`|
40
40
41
41
## Collectors available
42
42
43
43
The following table describes the available collectors as part of this plugin. All collectors are enabled by default and respect the original metrics name, descriptions, and types from Prometheus Windows Exporter, so you can use your current dashboards without any compatibility problem.
44
44
45
45
The Version column specifies the Fluent Bit version where the collector is available.
|`cpu`| Exposes CPU statistics. | Windows | v1.9 |
50
+
|`net`| Exposes Network statistics. | Windows | v2.0.8 |
51
+
|`logical_disk`| Exposes `logical_disk` statistics. | Windows | v2.0.8 |
52
+
|`cs`| Exposes `cs` statistics. | Windows | v2.0.8 |
53
+
|`os`| Exposes OS statistics. | Windows | v2.0.8 |
54
+
|`thermalzone`| Exposes `thermalzone` statistics. | Windows | v2.0.8 |
55
+
|`cpu_info`| Exposes `cpu_info` statistics. | Windows | v2.0.8 |
56
+
|`logon`| Exposes `logon` statistics. | Windows | v2.0.8 |
57
+
|`system`| Exposes `system` statistics. | Windows | v2.0.8 |
58
+
|`service`| Exposes `service` statistics. | Windows | v2.1.6 |
59
+
|`memory`| Exposes `memory` statistics. | Windows | v2.1.9|
60
+
|`paging_file`| Exposes `paging_file` statistics. | Windows | v2.1.9 |
61
+
|`process`| Exposes `process` statistics. | Windows | v2.1.9|
62
62
63
63
## Threading
64
64
@@ -70,6 +70,38 @@ This input always runs in its own [thread](../../administration/multithreading.m
70
70
71
71
In the following configuration file, the input plugin `windows_exporter_metrics` collects `metrics` every two seconds and exposes them through the [Prometheus Exporter](../outputs/prometheus-exporter.md) output plugin on HTTP/TCP port `2021`.
72
72
73
+
{% tabs %}
74
+
{% tab title="fluent-bit.yaml" %}
75
+
76
+
```yaml
77
+
# Node Exporter Metrics + Prometheus Exporter
78
+
# -------------------------------------------
79
+
# The following example collect host metrics on Linux and expose
80
+
# them through a Prometheus HTTP end-point.
81
+
#
82
+
# After starting the service try it with:
83
+
#
84
+
# $ curl http://127.0.0.1:2021/metrics
85
+
#
86
+
service:
87
+
flush: 1
88
+
log_level: info
89
+
90
+
pipeline:
91
+
inputs:
92
+
- name: windows_exporter_metrics
93
+
tag: node_metrics
94
+
scrape_interval: 2
95
+
96
+
outputs:
97
+
- name: prometheus_exporter
98
+
match: node_metrics
99
+
port: 2021
100
+
```
101
+
102
+
{% endtab %}
103
+
{% tab title="fluent-bit.conf" %}
104
+
73
105
```text
74
106
# Node Exporter Metrics + Prometheus Exporter
75
107
# -------------------------------------------
@@ -81,21 +113,24 @@ In the following configuration file, the input plugin `windows_exporter_metrics`
81
113
# $ curl http://127.0.0.1:2021/metrics
82
114
#
83
115
[SERVICE]
84
-
flush 1
85
-
log_level info
116
+
flush 1
117
+
log_level info
86
118
87
119
[INPUT]
88
-
name windows_exporter_metrics
89
-
tag node_metrics
90
-
scrape_interval 2
120
+
name windows_exporter_metrics
121
+
tag node_metrics
122
+
scrape_interval 2
91
123
92
124
[OUTPUT]
93
-
name prometheus_exporter
94
-
match node_metrics
95
-
host 0.0.0.0
96
-
port 2021
125
+
name prometheus_exporter
126
+
match node_metrics
127
+
host 0.0.0.0
128
+
port 2021
97
129
```
98
130
131
+
{% endtab %}
132
+
{% endtabs %}
133
+
99
134
You can test the expose of the metrics by using `curl`:
Windows service collector will retrieve all of the service information for the local node or container.
142
+
Windows service collector will retrieve all the service information for the local node or container.
108
143
`we.service.where`, `we.service.include`, and `we.service.exclude` can be used to filter the service metrics.
109
144
110
145
To filter these metrics, users should specify a `WHERE` clause.
@@ -202,6 +237,6 @@ The WMI query will be called with the translated parameter as:
202
237
203
238
## Enhancement requests
204
239
205
-
The plugin implements a subset of the available collectors in the original Prometheus Windows Exporter. If you would like a specific collector prioritized, open a Github issue by using the following template:
240
+
The plugin implements a subset of the available collectors in the original Prometheus Windows Exporter. If you would like a specific collector prioritized, open a GitHub issue by using the following template:
0 commit comments