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

[prometheus-json-exporter] Fix scrapeTimeout validation #4916

Merged

Conversation

CoolDuke
Copy link
Contributor

What this PR does / why we need it

The current implementation checks for the non-existent value serviceMonitor.scrapeTimeout which leads to a fallback to the default scrape timeout configured in Prometheus (usually 10s).

The PR ensures that the configured scrapeTimeout value for a target is used or if not defined the default value is used.

Which issue this PR fixes

none

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Signed-off-by: Christoph Hoth <[email protected]>
On-behalf-of: @ZEISS <[email protected]>
@CoolDuke CoolDuke requested review from xiu and zanhsieh as code owners October 16, 2024 13:35
Copy link

stale bot commented Feb 1, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the lifecycle/stale label Feb 1, 2025
@zanhsieh zanhsieh requested a review from schmiddim as a code owner February 2, 2025 07:26
@stale stale bot removed the lifecycle/stale label Feb 2, 2025
@zanhsieh zanhsieh merged commit c50b12e into prometheus-community:main Feb 2, 2025
5 checks passed
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.

2 participants