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

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable