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

increase timeout #53

Open
loogol opened this issue Mar 9, 2023 · 2 comments
Open

increase timeout #53

loogol opened this issue Mar 9, 2023 · 2 comments

Comments

@loogol
Copy link

loogol commented Mar 9, 2023

hi!
how to increase connection timeout on the docker version of pagespeed_exporter?

time="2023-03-09T19:17:13+03:00" level=warning msg="target scraping returned an error" error="Get \"https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed?alt=json&category=accessibility&category=best-practices&category=performance&category=pwa&category=seo&key=AIzaSyAGSiY7_dj9dhOfuBamOaRd0sOafWtMIy8&prettyPrint=false&strategy=desktop&url=https%3A%2F%2Fwww.my-site.org\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)" strategy=desktop target="https://www.www.my-site.org"

@smartinov
Copy link
Contributor

Yeah, so you can configure the scrape timeout in prometheus

https://prometheus.io/docs/prometheus/latest/configuration/configuration

something in the lines of

- job_name: bleh
  scrape_timeout: 60s

@smartinov
Copy link
Contributor

@loogol did you manage to set it?

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

2 participants