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:
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