Skip to content

Conversation

@idoqo
Copy link

@idoqo idoqo commented Nov 19, 2025

@idoqo idoqo marked this pull request as ready for review November 19, 2025 21:19
@idoqo idoqo requested a review from a team as a code owner November 19, 2025 21:19
Copilot finished reviewing on behalf of idoqo November 19, 2025 21:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR conditionally excludes the prometheus.DefaultGatherer when the standard Go runtime or process scrapers are enabled to avoid duplicate metrics. The DefaultGatherer includes Go runtime and process metrics by default, which would conflict with the custom standard.go and standard.process collectors.

Key changes:

  • Added logic to detect when standard.go or standard.process scrapers are present
  • Conditionally construct the prometheus.Gatherers slice to exclude DefaultGatherer when these scrapers are active

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

4 participants