grafana/phlare

Unable to set scrape timeout higher than scrape interval

eric-engberg opened this issue · 2 comments

Describe the bug

When attempting to set scrape interval to 10s and timeout to 30s the following error is given.
failed creating phlare: scrape timeout must be larger or equal to inverval for: java
when using

- job_name: "java"
  scrape_interval: "10s"
  scrape_timeout: "30s"

To Reproduce

Steps to reproduce the behavior:

  1. Set timeout to a higher value than interval
  2. Start phlare

Expected behavior

A higher timeout than interval should be accepted and work.

Environment

  • Infrastructure: EKS
  • Deployment tool: ArgoCD, Kustomize, Helm

I'll send a fix for that bug soon.