Skip to content

Input windows_exporter_metrics dosent work #10130

@KhafRuslan

Description

@KhafRuslan

Bug Report

Describe the bug

To Reproduce

  • Example log message:
[2025/03/26 10:16:55] [ info] Configuration:
[2025/03/26 10:16:55] [ info]  flush time     | 1.000000 seconds
[2025/03/26 10:16:55] [ info]  grace          | 5 seconds
[2025/03/26 10:16:55] [ info]  daemon         | 0
[2025/03/26 10:16:55] [ info] ___________
[2025/03/26 10:16:55] [ info]  inputs:
[2025/03/26 10:16:55] [ info]      windows_exporter_metrics
[2025/03/26 10:16:55] [ info] ___________
[2025/03/26 10:16:55] [ info]  filters:
[2025/03/26 10:16:55] [ info] ___________
[2025/03/26 10:16:55] [ info]  outputs:
[2025/03/26 10:16:55] [ info]      prometheus_exporter.0
[2025/03/26 10:16:55] [ info] ___________
[2025/03/26 10:16:55] [ info]  collectors:
[2025/03/26 10:16:55] [ info] [fluent bit] version=3.2.9, commit=e10581225f, pid=10728
[2025/03/26 10:16:55] [debug] [engine] coroutine stack size: 98302 bytes (96.0K)
[2025/03/26 10:16:55] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2025/03/26 10:16:55] [ info] [simd    ] disabled
[2025/03/26 10:16:55] [ info] [cmetrics] version=0.9.9
[2025/03/26 10:16:55] [ info] [ctraces ] version=0.6.1
[2025/03/26 10:16:55] [ info] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing
[2025/03/26 10:16:55] [ info] [input:windows_exporter_metrics:windows_exporter_metrics.0] storage_strategy='memory' (memory only)
[2025/03/26 10:16:55] [debug] [windows_exporter_metrics:windows_exporter_metrics.0] created event channels: read=920 write=924
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics cpu
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics cpu_info
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics os
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics net
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics logical_disk
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics cs
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics thermalzone
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics logon
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics system
[2025/03/26 10:16:55] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] enabled metrics service
[2025/03/26 10:16:55] [debug] [prometheus_exporter:prometheus_exporter.0] created event channels: read=1312 write=1316
[2025/03/26 10:16:55] [ info] [output:prometheus_exporter:prometheus_exporter.0] listening iface=0.0.0.0 tcp_port=12000
[2025/03/26 10:16:55] [ info] [sp] stream processor started
[2025/03/26 10:16:57] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing WMI instance....
[2025/03/26 10:16:58] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] deinitializing WMI instance....
[2025/03/26 10:16:58] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] deinitializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] deinitializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] deinitializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing WMI instance....
[2025/03/26 10:17:00] [engine] caught signal (SIGINT)
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] deinitializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] deinitializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] initializing WMI instance....
[2025/03/26 10:17:00] [debug] [input:windows_exporter_metrics:windows_exporter_metrics.0] deinitializing WMI instance....
[2025/03/26 10:17:00] [debug] [task] created task=04A93C50 id=0 OK
[2025/03/26 10:17:00] [ warn] [engine] service will shutdown in max 5 seconds
[2025/03/26 10:17:00] [ info] [input] pausing windows_exporter_metrics.0
write: No error
[msg] error writing message header
[2025/03/26 10:17:00] [debug] [out flush] cb_destroy coro_id=0
[2025/03/26 10:17:00] [debug] [task] destroy task=04A93C50 (task_id=0)
write: No error

Steps to reproduce the problem:

  • Install fluent-bit version 3.2.9
  • Use this config:
[SERVICE]
    flush           1
    log_level       DEBUG

[INPUT]
    name            windows_exporter_metrics
    tag             node_metrics
    scrape_interval 2

[OUTPUT]
    name            prometheus_exporter
    match           node_metrics
    host            0.0.0.0
    port            12000
  • and run application:
    fluent-bit.exe -c "c:\Program Files (x86)\fluent-bit\conf\fluent-bit.conf"

Your Environment

  • Server type and version:
  • Operating System and version:

Additional context
I expected to be able to run fluent-bit as a replacement for windows_explorer, but I couldn't achieve this. windows_explorer works as a separate application

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions