Context Deadline Exceeded - Prometheus


Answer :

Probably the default scrape_timeout value is too short for you



[ scrape_timeout: <duration> | 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



I had a same problem in the past. In my case the problem was with the certificates and I fixed it with adding:



 tls_config:
insecure_skip_verify: true


You can try it, maybe it will work.



Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy