Prometheus to scrape metrics from https target/exporter/server.

13 views
Skip to first unread message

akshay sharma

unread,
Jul 18, 2021, 1:47:38 AM7/18/21
to Prometheus Users
Hi,

I'm running a service which is exposing metrics on https, service has enabled with tls certs. 
I want Prometheus to scrape metrics from that https endpoint. 

Will this work? Where ca_file is the service certificate? 
scrape_configs:
  - job_name: 'prometheus'
    scheme: https
    tls_config:
      ca_file: service.crt
    static_configs:
    - targets: ['https://xx.xxx.xxx.xxx:9090']


Is there any provision to do that? 

thanks,
Akshay



Reply all
Reply to author
Forward
0 new messages