Skip to content

Conversation

@difagume
Copy link

@difagume difagume commented Dec 9, 2025

Description

This PR resolves #766 by addressing the report of idle CPU usage spikes.
To give users more control and resource efficiency, this change introduces a new environment variable WUD_PROMETHEUS_ENABLED.

  • Default behavior: true (Prometheus enabled).
  • Opt-out: Users can set WUD_PROMETHEUS_ENABLED=false to completely disable the Prometheus module and its background metrics collection.

- Add getPrometheusConfiguration function with schema validation

- Implement reading of the WUD_PROMETHEUS_ENABLED environment variable with a default value of true

- Modify Prometheus module initialization to respect the enablement configuration

- Add unit tests for enabled and disabled behavior

- Document the new configuration in the monitoring guide in README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WUD idle CPU usage?

1 participant