Context Deadline Exceeded - prometheus : <p>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. </p>

<p>When i access:</p>

<p><a href="https://ip-address:port/metrics" rel="noreferrer">https://ip-address:port/metrics</a></p>

<p>I can see the metrics.
The job that I have added in the prometheus.yml configuration is:</p>

<pre><code>- job_name: 'test-jvm-metrics'
    scheme: https
    static_configs:
      - targets: ['ip:port']
</code></pre>

<p>When i restart the prometheus I can see error on my target that says: </p>

<blockquote>
  <p>context deadline exceeded</p>
</blockquote>

<p>I have read that maybe the scrape_timeout is the problem, but I have set it to 50 sec and still the same problem.</p>

<p>What can cause this problem and how to fix it?
Thank you!</p>
