Skip to content

are queries executed in parallel? #508

Closed Answered by bmrobin
bmrobin asked this question in Q&A
Discussion options

You must be logged in to vote

notice the sql query was killed after 10sec, even though we were using scrapeTimeout: 30s

we figured out that it was this part

Prometheus informs targets of its own scrape timeout (via the "X-Prometheus-Scrape-Timeout-Seconds" request header)
so the actual timeout is computed as:
min(scrape_timeout, X-Prometheus-Scrape-Timeout-Seconds - scrape_timeout_offset)

we traced it down to the Prometheus ServiceMonitor that was doing the actual scraping and set the scrapeTimeout there -- like how you describe here

scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@burningalchemist
Comment options

@burningalchemist
Comment options

Comment options

You must be logged in to vote
1 reply
@burningalchemist
Comment options

Answer selected by bmrobin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants