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

Allow setting of default_scrape_timeout #681

Open
boniek83 opened this issue Aug 7, 2024 · 0 comments
Open

Allow setting of default_scrape_timeout #681

boniek83 opened this issue Aug 7, 2024 · 0 comments

Comments

@boniek83
Copy link

boniek83 commented Aug 7, 2024

I want to be able to set default_scrape_timeout to avoid errors like this:
ts=2024-08-07T23:37:29.89731873Z level=error msg="error generating scrapeconfig from serviceMonitor" component_path=/ component_id=prometheus.operator.servicemonitors.service_monitors name=rdc err="scrape timeout greater than scrape interval for scrape config with job name \"serviceMonitor/amdgpu/rdc/0\""
This particular error message is about prometheus operator objects but this setting should be applied to all scrape targets.
Example of scrape target I want to achieve:

      prometheus.operator.servicemonitors "all" {
        forward_to = [prometheus.remote_write.default.receiver]
        clustering {
          enabled  = true
        }
        scrape {
          default_scrape_interval = "30s"
          default_scrape_timeout  = "5s"
        }
      }
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

No branches or pull requests

1 participant