Skip to content
New issue

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

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

Already on GitHub? # to your account

High CPU usage after upgrading to 0.29.2 #1778

Open
guoard opened this issue Nov 27, 2024 · 2 comments
Open

High CPU usage after upgrading to 0.29.2 #1778

guoard opened this issue Nov 27, 2024 · 2 comments

Comments

@guoard
Copy link

guoard commented Nov 27, 2024

Problem Statement

After upgrading windows_exporter from version 0.19.0 to 0.29.2, I noticed an increase in CPU usage.

Additionally, I found a single log entry with an error level:

level=error caller=http.go:169 msg="error gathering metrics: collected metric \"\\x00\\x00ndows_tcp_connection_failures_total\" { label:{name:\"af\"  value:\"ipv6\"}  counter:{value:168101}} was collected before with the same name and label values"

Despite this, windows_exporter_collector_duration_seconds showed an improvement, dropping from ~0.8s to <0.2s for all collectors.

Environment

  • windows_exporter Version: 0.29.2
  • Windows Server Version: 2012-R2
@jkroepke
Copy link
Member

What I can say is that https://github.com/prometheus-community/windows_exporter/releases/tag/v0.30.0-rc.0 improves the CPU usage compared to 0.29 release. Based on internal test, the CPU load with all collectors enabled and scrape interval of 15 seconds has been lowered twice.

On a 4 core machine, a cpu usage up 2% is expected.

@guoard
Copy link
Author

guoard commented Nov 27, 2024

@jkroepke Thank you for your response! I’ll test it and share the results.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants