Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netframework collector queries fail afer upgrading to 0.30.1 (that switched to Windows Management Infrastructure) #1856

Open
lucasfsvilela opened this issue Jan 24, 2025 · 1 comment
Labels

Comments

@lucasfsvilela
Copy link

Current Behavior

Windows Exporter (0.30.1) is configured with some netframework collectors:

    collectors:
      enabled: "container,cpu,cpu_info,cs,logical_disk,memory,net,netframework,os,process,service,system"
    collector:
      netframework:
        enabled: "clrexceptions,clrlocksandthreads,clrmemory"

But no netframework collectors metrics are being collected. At log, I can see error with WMI query:

time=2025-01-24T14:39:12.309Z level=WARN source=collect.go:212 msg="collector netframework failed after 36.2285ms, resulting in 0 metrics" err="WMI query failed: WMI query failed: MI_RESULT_INVALID_QUERY: \nWMI query failed: WMI query failed: MI_RESULT_INVALID_QUERY: \nWMI query failed: WMI query failed: MI_RESULT_INVALID_QUERY: "

These metrics were being collected fine when running older version 0.24.0

Expected Behavior

Metrics from netframework collectors should be collected as usual.

Steps To Reproduce

Environment

  • windows_exporter Version: 0.30.1
  • Windows Server Version: Windows Server 2022 Datacenter

windows_exporter logs

time=2025-01-24T14:49:12.300Z level=WARN source=collect.go:212 msg="collector netframework failed after 23.3139ms, resulting in 0 metrics" err="WMI query failed: WMI query failed: MI_RESULT_INVALID_QUERY: \nWMI query failed: WMI query failed: MI_RESULT_INVALID_QUERY: \nWMI query failed: WMI query failed: MI_RESULT_INVALID_QUERY: "

Anything else?

No response

@jkroepke
Copy link
Member

My problem is, I have no idea how I can setup a test environment for that collector.

If you could explain, I could reproduce the issue and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants