Context Deadline Exceeded - prometheus

后端 未结 8 1399
长情又很酷
长情又很酷 2021-02-12 20:07

I have Prometheus configuration with many jobs where I am scraping metrics over HTTP. But I have one job where I need to scrape the metrics over HTTPS.

When I access:

8条回答
  •  囚心锁ツ
    2021-02-12 20:57

    Probably the default scrape_timeout value is too short for you

    [ scrape_timeout:  | default = 10s ]
    

    Set a bigger value for scrape_timeout.

    scrape_configs:
      - job_name: 'prometheus'
    
        scrape_interval: 5m
        scrape_timeout: 1m
    

    Take a look here https://github.com/prometheus/prometheus/issues/1438

提交回复
热议问题